Class DatabaseActionSequenceElement<T extends org.palladiosimulator.dataflow.confidentiality.pcm.model.confidentiality.repository.OperationalDataStoreComponent>
java.lang.Object
org.palladiosimulator.dataflow.confidentiality.analysis.entity.sequence.AbstractActionSequenceElement<T>
org.palladiosimulator.dataflow.confidentiality.analysis.entity.pcm.AbstractPCMActionSequenceElement<T>
org.palladiosimulator.dataflow.confidentiality.analysis.entity.pcm.seff.DatabaseActionSequenceElement<T>
public class DatabaseActionSequenceElement<T extends org.palladiosimulator.dataflow.confidentiality.pcm.model.confidentiality.repository.OperationalDataStoreComponent>
extends AbstractPCMActionSequenceElement<T>
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseActionSequenceElement(DatabaseActionSequenceElement<T> oldElement, List<DataFlowVariable> dataFlowVariables, List<CharacteristicValue> nodeCharacteristics) Constructs a new Database Action Sequence Element given an old Database Action Sequence Element and an updated List of dataflow variables and Node characteristicsDatabaseActionSequenceElement(T element, Deque<org.palladiosimulator.pcm.core.composition.AssemblyContext> context, boolean isWriting, DataStore dataStore) Create a new Database Action Sequence Element with the underlying Palladio Element, Assembly Context, DataStore and indication wheter the Data Store is written to -
Method Summary
Modifier and TypeMethodDescriptioncreatePrintableDatabaseInformation(List<DataFlowVariable> variables) Creates printable information for the database componentevaluateDataFlow(List<DataFlowVariable> variables, AnalysisData analysisData) Evaluates the Data Flow at a given sequence element given the list ofDataFlowVariables that are received from the precursorReturns the data store of the sequence elementbooleanReturns whether the data store is written totoString()Methods inherited from class org.palladiosimulator.dataflow.confidentiality.analysis.entity.pcm.AbstractPCMActionSequenceElement
checkCallParameter, equals, getContext, getDataFlowVariables, getElement, getNodeCharacteristics, hashCodeMethods inherited from class org.palladiosimulator.dataflow.confidentiality.analysis.entity.sequence.AbstractActionSequenceElement
createPrintableCharacteristicsList, createPrintableNodeInformation, getAllDataFlowVariables, getAllNodeCharacteristics, getDataFlowCharacteristicsWithName, getNodeCharacteristicsWithName, isEvaluated
-
Constructor Details
-
DatabaseActionSequenceElement
public DatabaseActionSequenceElement(T element, Deque<org.palladiosimulator.pcm.core.composition.AssemblyContext> context, boolean isWriting, DataStore dataStore) Create a new Database Action Sequence Element with the underlying Palladio Element, Assembly Context, DataStore and indication wheter the Data Store is written to- Parameters:
element- Underlying Palladio Elementcontext- Assembly Context of the SEFFisWriting- Is true, if the data store is written to. Otherwise, the data store is read fromdataStore- Reference to the data store that is attached to this Database Action Sequence Element
-
DatabaseActionSequenceElement
public DatabaseActionSequenceElement(DatabaseActionSequenceElement<T> oldElement, List<DataFlowVariable> dataFlowVariables, List<CharacteristicValue> nodeCharacteristics) Constructs a new Database Action Sequence Element given an old Database Action Sequence Element and an updated List of dataflow variables and Node characteristics- Parameters:
oldElement- Old Database Action Sequence element, which attributes are copieddataFlowVariables- Updated list of dataflow variablenodeCharacteristics- Updated list of node characteristics
-
-
Method Details
-
evaluateDataFlow
public AbstractActionSequenceElement<T> evaluateDataFlow(List<DataFlowVariable> variables, AnalysisData analysisData) Description copied from class:AbstractActionSequenceElementEvaluates the Data Flow at a given sequence element given the list ofDataFlowVariables that are received from the precursor- Specified by:
evaluateDataFlowin classAbstractActionSequenceElement<T extends org.palladiosimulator.dataflow.confidentiality.pcm.model.confidentiality.repository.OperationalDataStoreComponent>- Parameters:
variables- List ofDataFlowVariables propagated from the precursoranalysisData- Saved data and calculators of the analysis- Returns:
- Returns a new Sequence element with the updated Node- and DataFlowVariables
-
isWriting
public boolean isWriting()Returns whether the data store is written to- Returns:
- Returns true, if the data store is written to. Otherwise, the method returns false
-
getDataStore
Returns the data store of the sequence element- Returns:
- Data store of the sequence element
-
toString
- Specified by:
toStringin classAbstractActionSequenceElement<T extends org.palladiosimulator.dataflow.confidentiality.pcm.model.confidentiality.repository.OperationalDataStoreComponent>
-
createPrintableDatabaseInformation
Creates printable information for the database component- Parameters:
variables-- Returns:
-