Class WFBlockToGraph
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.object.transformation.WFBlockToGraph
-
- All Implemented Interfaces:
WorkflowBlockListener
- Direct Known Subclasses:
WFBlockToNESTWorkflow,WFBlockToUIGraph
public abstract class WFBlockToGraph extends Object implements WorkflowBlockListener
Generic implementation for workflow-block to any graph - transformation- Author:
- Alexander Stromer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.data.object.transformation.WorkflowBlockListener
WorkflowBlockListener.DATAFLOW_DIRECTION
-
-
Field Summary
Fields Modifier and Type Field Description protected StringDATA_ELEMENT_PREFIXPrefix for dataelements (DataflowWrapperObjects) of the block-oriented workflow-objectmodel.protected StringEDGE_ID_PREFIXPrefix for edges without any previous ID when converted to NESTGraph.protected NESTWorkflowObjectgraphStores the resulting graph of all operations.protected ModelmodelStores the model used for instantiating all CAKE I - objects.protected StringNODE_END_PREFIXPrefix for endnodes of NodeObjects (nodes) of the block-oriented workflow-objectmodel.protected StringSUBWFL_ID_PREFIXPrefix for subworkflows of the block-oriented workflow-objectmodel.protected TransformationConfigtransformationConfigquick reference to transformation configuration
-
Constructor Summary
Constructors Constructor Description WFBlockToGraph(Model model)Standard constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcreateEmptyGraph()Instantiates the necessary GraphNodes & GraphEdges to represent an empty graph.protected voiddoInit()Handles additional initialization for the subclasses.NESTWorkflowObjectgetGraph()Returns the created graph based on the transmitted events.protected StringgetNewEdgeID()Returns a new workflow-unique ID for an edge, which consists of a special prefix for edges + an autoincremented integer.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.transformation.WorkflowBlockListener
addDataRef, addItem, removeDataRef, removeItem, updateAll
-
-
-
-
Field Detail
-
NODE_END_PREFIX
protected String NODE_END_PREFIX
Prefix for endnodes of NodeObjects (nodes) of the block-oriented workflow-objectmodel.
-
DATA_ELEMENT_PREFIX
protected String DATA_ELEMENT_PREFIX
Prefix for dataelements (DataflowWrapperObjects) of the block-oriented workflow-objectmodel.
-
SUBWFL_ID_PREFIX
protected String SUBWFL_ID_PREFIX
Prefix for subworkflows of the block-oriented workflow-objectmodel.
-
EDGE_ID_PREFIX
protected String EDGE_ID_PREFIX
Prefix for edges without any previous ID when converted to NESTGraph.
-
model
protected Model model
Stores the model used for instantiating all CAKE I - objects.
-
graph
protected NESTWorkflowObject graph
Stores the resulting graph of all operations.
-
transformationConfig
protected TransformationConfig transformationConfig
quick reference to transformation configuration
-
-
Constructor Detail
-
WFBlockToGraph
public WFBlockToGraph(Model model)
Standard constructor.- Parameters:
model- The model, which should be used for instantiating the CAKE I - objects.
-
-
Method Detail
-
doInit
protected void doInit()
Handles additional initialization for the subclasses. This is not done in the constructor, because of the special handling of concrete-class-variable-instantiation of JAVA. (Abstract methods dont execute correctly in abstract constructors)
-
createEmptyGraph
protected abstract void createEmptyGraph()
Instantiates the necessary GraphNodes & GraphEdges to represent an empty graph.
-
getGraph
public NESTWorkflowObject getGraph()
Returns the created graph based on the transmitted events.- Returns:
- The created graph.
-
getNewEdgeID
protected String getNewEdgeID()
Returns a new workflow-unique ID for an edge, which consists of a special prefix for edges + an autoincremented integer.- Returns:
-
-