Class SEFFFinderContext
java.lang.Object
org.palladiosimulator.dataflow.confidentiality.analysis.sequence.pcm.finder.SEFFFinderContext
-
Constructor Summary
ConstructorDescriptionSEFFFinderContext
(Deque<org.palladiosimulator.pcm.core.composition.AssemblyContext> context, Deque<AbstractPCMActionSequenceElement<?>> callers, List<org.palladiosimulator.pcm.repository.Parameter> parameter, List<DataStore> dataStores) Initializes a new SEFF Finder context with the given assembly context, Collection of callers, List of available parameter, and all discovered data storesSEFFFinderContext
(SEFFFinderContext context) Duplicate SEFF Finder Context given an existing context -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCaller
(AbstractPCMActionSequenceElement<?> caller) Adds a new caller to the SEFF Finder context to be saved as the topmost element in the collection of callersvoid
addDataStore
(DataStore dataStore) Add a new known data store to the contextReturns the currently saved callers, that called the current SEFF elementDeque<org.palladiosimulator.pcm.core.composition.AssemblyContext>
Returns the currently saved assembly contexts, that the current SEFF element is executed inReturns the list of data stores, that are currently knownReturns the last called PCM element and removes it from the saved callersList<org.palladiosimulator.pcm.repository.Parameter>
Returns the currently saved parameter, that are available for the current SEFF elementvoid
Update parameter that are passed to the called function for a given calling PCM elementvoid
updateParametersForCall
(List<org.palladiosimulator.pcm.repository.Parameter> passedVariables) Update stored parameters directly by setting passed variables to a functionvoid
updateSEFFContext
(Deque<org.palladiosimulator.pcm.core.composition.AssemblyContext> newContext) Update assembly contexts with a new provided collection of assembly contexts
-
Constructor Details
-
SEFFFinderContext
public SEFFFinderContext(Deque<org.palladiosimulator.pcm.core.composition.AssemblyContext> context, Deque<AbstractPCMActionSequenceElement<?>> callers, List<org.palladiosimulator.pcm.repository.Parameter> parameter, List<DataStore> dataStores) Initializes a new SEFF Finder context with the given assembly context, Collection of callers, List of available parameter, and all discovered data stores- Parameters:
context
- Assembly context present at the SEFF elementcallers
- List of callers that called the SEFF elementparameter
- List of parameters present at the SEFF elementdataStores
- List of data stores that were discovered while finding sequences
-
SEFFFinderContext
Duplicate SEFF Finder Context given an existing context- Parameters:
context
- SEFF Finder Context that should be duplicated
-
-
Method Details
-
updateParameterForCallerReturning
Update parameter that are passed to the called function for a given calling PCM element- Parameters:
caller
- Calling PCM element, for which parameter shall be updated
-
updateParametersForCall
public void updateParametersForCall(List<org.palladiosimulator.pcm.repository.Parameter> passedVariables) Update stored parameters directly by setting passed variables to a function- Parameters:
passedVariables
- New variables present in the finder context
-
updateSEFFContext
public void updateSEFFContext(Deque<org.palladiosimulator.pcm.core.composition.AssemblyContext> newContext) Update assembly contexts with a new provided collection of assembly contexts- Parameters:
newContext
- Collection of new assembly contexts
-
getLastCaller
Returns the last called PCM element and removes it from the saved callers- Returns:
- Last called PCM element
-
addCaller
Adds a new caller to the SEFF Finder context to be saved as the topmost element in the collection of callers- Parameters:
caller
- Added caller to the finder context
-
addDataStore
Add a new known data store to the context- Parameters:
dataStore
- New known data store
-
getContext
Returns the currently saved assembly contexts, that the current SEFF element is executed in- Returns:
- Returns the collection of saved assembly contexts
-
getCallers
Returns the currently saved callers, that called the current SEFF element- Returns:
- Returns the collection of saved callers
-
getParameter
Returns the currently saved parameter, that are available for the current SEFF element- Returns:
-
getDataStores
Returns the list of data stores, that are currently known- Returns:
- List of available data stores
-