Class AbstractActionSequenceElement<T extends EObject>
java.lang.Object
org.palladiosimulator.dataflow.confidentiality.analysis.sequence.entity.AbstractActionSequenceElement<T>
- Direct Known Subclasses:
AbstractPCMActionSequenceElement
-
Constructor Summary
ConstructorDescriptionConstructs a new action sequence element with empty dataflow variables and node characteristicsAbstractActionSequenceElement
(List<DataFlowVariable> dataFlowVariables, List<CharacteristicValue> nodeCharacteristics) Creates a new action sequence element with updated dataflow variables and node characteristics -
Method Summary
Modifier and TypeMethodDescriptioncreatePrintableCharacteristicsList
(List<CharacteristicValue> characteristics) Returns a string with the names of all characteristic types and selected literals of all characteristic values.Returns a string with detailed information about a node's characteristics, data flow variables and the variables' characteristics.abstract AbstractActionSequenceElement<T>
evaluateDataFlow
(List<DataFlowVariable> variables) Evaluates the Data Flow at a given sequence element given the list ofDataFlowVariable
s that are received from the precursorReturns a list of all dataflow variables that are present for the action sequence elementReturns a list of all present node characteristics for the action sequence elementMap<DataFlowVariable,
List<org.palladiosimulator.dataflow.dictionary.characterized.DataDictionaryCharacterized.Literal>> Returns a Map of characteristic literals and dataflow variables that are set for a given characteristic type in the list of all data flow variablesList<org.palladiosimulator.dataflow.dictionary.characterized.DataDictionaryCharacterized.Literal>
Returns a list of characteristic literals that are set for a given characteristic type in the list of all node characteristicsboolean
Returns whether the action sequence element has been evaluatedabstract String
toString()
-
Constructor Details
-
AbstractActionSequenceElement
public AbstractActionSequenceElement()Constructs a new action sequence element with empty dataflow variables and node characteristics -
AbstractActionSequenceElement
public AbstractActionSequenceElement(List<DataFlowVariable> dataFlowVariables, List<CharacteristicValue> nodeCharacteristics) Creates a new action sequence element with updated dataflow variables and node characteristics- Parameters:
dataFlowVariables
- List of updated dataflow variablesnodeCharacteristics
- List of updated node characteristics
-
-
Method Details
-
evaluateDataFlow
Evaluates the Data Flow at a given sequence element given the list ofDataFlowVariable
s that are received from the precursor- Parameters:
variables
- List ofDataFlowVariable
s propagated from the precursor- Returns:
- Returns a new Sequence element with the updated Node- and DataFlowVariables
-
getNodeCharacteristicsWithName
public List<org.palladiosimulator.dataflow.dictionary.characterized.DataDictionaryCharacterized.Literal> getNodeCharacteristicsWithName(String name) Returns a list of characteristic literals that are set for a given characteristic type in the list of all node characteristicsSee
getDataFlowCharacteristicsWithName(java.lang.String)
for a similar method for dataflow variables- Parameters:
name
- Name of the characteristic type- Returns:
- Returns a list of all characteristic literals matching the characteristic type
-
getDataFlowCharacteristicsWithName
public Map<DataFlowVariable,List<org.palladiosimulator.dataflow.dictionary.characterized.DataDictionaryCharacterized.Literal>> getDataFlowCharacteristicsWithName(String name) Returns a Map of characteristic literals and dataflow variables that are set for a given characteristic type in the list of all data flow variablesSee
getNodeCharacteristicsWithName(java.lang.String)
for a similar method for node characteristics- Parameters:
name
- Name of the characteristic type- Returns:
- Returns a list of all characteristic literals matching the characteristic type
-
getAllDataFlowVariables
Returns a list of all dataflow variables that are present for the action sequence element- Returns:
- List of present dataflow variables
-
getAllNodeCharacteristics
Returns a list of all present node characteristics for the action sequence element- Returns:
- List of present node characteristics
-
isEvaluated
public boolean isEvaluated()Returns whether the action sequence element has been evaluated- Returns:
- Returns true, if the node is evaluated. Otherwise, the method returns false
-
toString
-
createPrintableNodeInformation
Returns a string with detailed information about a node's characteristics, data flow variables and the variables' characteristics.- Parameters:
node
- a sequence element after the label propagation happened- Returns:
- a string with the node's string representation and a list of all related characteristics types and literals
-
createPrintableCharacteristicsList
Returns a string with the names of all characteristic types and selected literals of all characteristic values.- Parameters:
characteristics
- a list of characteristics values- Returns:
- a comma separated list of the format "type.literal, type.literal"
-