Class DatabaseActionSequenceElement<T extends org.palladiosimulator.dataflow.confidentiality.pcm.model.confidentiality.repository.OperationalDataStoreComponent>


public class DatabaseActionSequenceElement<T extends org.palladiosimulator.dataflow.confidentiality.pcm.model.confidentiality.repository.OperationalDataStoreComponent> extends AbstractPCMActionSequenceElement<T>
  • 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 Element
      context - Assembly Context of the SEFF
      isWriting - Is true, if the data store is written to. Otherwise, the data store is read from
      dataStore - 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 copied
      dataFlowVariables - Updated list of dataflow variable
      nodeCharacteristics - Updated list of node characteristics
  • Method Details

    • evaluateDataFlow

      public AbstractActionSequenceElement<T> evaluateDataFlow(List<DataFlowVariable> variables, AnalysisData analysisData)
      Description copied from class: AbstractActionSequenceElement
      Evaluates the Data Flow at a given sequence element given the list of DataFlowVariables that are received from the precursor
      Specified by:
      evaluateDataFlow in class AbstractActionSequenceElement<T extends org.palladiosimulator.dataflow.confidentiality.pcm.model.confidentiality.repository.OperationalDataStoreComponent>
      Parameters:
      variables - List of DataFlowVariables propagated from the precursor
      analysisData - 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

      public DataStore getDataStore()
      Returns the data store of the sequence element
      Returns:
      Data store of the sequence element
    • toString

      public String toString()
      Specified by:
      toString in class AbstractActionSequenceElement<T extends org.palladiosimulator.dataflow.confidentiality.pcm.model.confidentiality.repository.OperationalDataStoreComponent>
    • createPrintableDatabaseInformation

      public String createPrintableDatabaseInformation(List<DataFlowVariable> variables)
      Creates printable information for the database component
      Parameters:
      variables -
      Returns: