Class NESTSequentialWorkflowObjectImpl
java.lang.Object
de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
de.uni_trier.wi2.procake.data.object.nest.impl.NESTGraphObjectImpl
de.uni_trier.wi2.procake.data.object.nest.impl.NESTAbstractWorkflowObjectImpl
de.uni_trier.wi2.procake.data.object.nest.impl.NESTSequentialWorkflowObjectImpl
- All Implemented Interfaces:
DataObject
,NESTAbstractWorkflowObject
,NESTGraphObject
,NESTSequentialWorkflowObject
,PropertyHandler
,Iterable<NESTSequenceNodeObject>
public class NESTSequentialWorkflowObjectImpl
extends NESTAbstractWorkflowObjectImpl
implements NESTSequentialWorkflowObject
-
Field Summary
Fields inherited from class de.uni_trier.wi2.procake.data.object.nest.impl.NESTGraphObjectImpl
eventListener, graphNodes, idManager
Fields inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
objectId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGraphNode
(NESTNodeObject newGraphNode) Adds the given graph-node to the internal list of registered graphnodes.copy()
Makes a deep copy of the data objectprotected NESTNodeObject
copyNodeDeep
(NESTNodeObject node, Map<NESTNodeObject, NESTNodeObject> copiedNodes, Map<NESTEdgeObject, NESTEdgeObject> copiedEdges, NESTAbstractWorkflowObject nestWorkflow) Returns the list of endNodes (nodes with no outgoing NESTControlflowEdge) for this graph.Returns all the task nodes that are not connected via controlflow-edge to successor tasks (end task nodes)Finds the ordered task nodes of this resource and returns them as a 1D array.Returns the complete set of sequence nodes registered in the graph.Returns the list of startNodes (nodes with no incoming NESTControlflowEdge) for this graph.Returns all the task nodes that are not connected via controlflow-edge to predeccessor tasks (start task nodes)Returns the tasks in the string representation.void
Prints the tasks.void
Creates a new de facto resource from the given graphObject only if it indeed is a de facto workflow.void
Creates a new de facto resource from the given graphObject only if it indeed is a de facto workflow.Methods inherited from class de.uni_trier.wi2.procake.data.object.nest.impl.NESTAbstractWorkflowObjectImpl
copyEdgeDeep, getControlflowEdges, getDataflowEdges, getDataNodes, getDataNodes, getEndTaskNodes, getEqualSyntacticGraphNode, getInputDataNodes, getInputDataNodes, getModifier, getOutputDataNodes, getOutputDataNodes, getStartTaskNodes, getSubWorkflowNodes, getTaskNodes, getTaskNodes, getWorkflowNode, hasSubWorkflowNodes, iterator
Methods inherited from class de.uni_trier.wi2.procake.data.object.nest.impl.NESTGraphObjectImpl
assertSameValueAsIn, checkAllowedGraphClasses, containsValueFrom, containsValueFromWithExceptions, getEqualIdGraphNode, getGraphEdge, getGraphEdges, getGraphNode, getGraphNodes, getGraphNodes, getIDManager, getNumberOfEdges, getNumberOfNodes, getSemanticallyEqualNode, getSemanticallyEqualNode, getVisualizer, getVisualizer, hasSameValueAsIn, publishAddNode, publishRemoveNode, removeGraphNode, toString, updateDependencies, updateGraphNodeId
Methods inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
addProperty, addProperty, deepCopy, getAllProperties, getAllPropertyNodes, getDataClass, getId, getModel, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasClassName, hasProperties, hasSystemClassName, isAggregate, isAtomic, isBoolean, isByteArray, isChronologic, isCollection, isDataflowWrapper, isDataReference, isDate, isDouble, isInteger, isInterval, isKindOf, isList, isMemberOf, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isSequence, isSet, isString, isSubWorkflow, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, removeId, removeProperty, setDataClass, setId, setPropertyRootNode, toDetailedString, toXML
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.data.object.DataObject
assertSameValueAsIn, getDataClass, getId, getModel, hasClassName, hasSameValueAsIn, hasSystemClassName, isAggregate, isAtomic, isBoolean, isByteArray, isChronologic, isCollection, isDataflowWrapper, isDataReference, isDate, isDouble, isInteger, isInterval, isKindOf, isList, isMemberOf, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isSequence, isSet, isString, isSubWorkflow, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, removeId, setDataClass, setId, toDetailedString, toXML
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface de.uni_trier.wi2.procake.data.object.nest.NESTAbstractWorkflowObject
getControlflowEdges, getDataflowEdges, getDataNodes, getDataNodes, getEndTaskNodes, getEqualSyntacticGraphNode, getInputDataNodes, getInputDataNodes, getModifier, getOutputDataNodes, getOutputDataNodes, getStartTaskNodes, getSubWorkflowNodes, getTaskNodes, getTaskNodes, getWorkflowNode, hasSubWorkflowNodes
Methods inherited from interface de.uni_trier.wi2.procake.data.object.nest.NESTGraphObject
containsValueFrom, containsValueFromWithExceptions, getEqualIdGraphNode, getGraphEdge, getGraphEdges, getGraphNode, getGraphNodes, getGraphNodes, getIDManager, getNumberOfEdges, getNumberOfNodes, getSemanticallyEqualNode, getSemanticallyEqualNode, getVisualizer, getVisualizer, removeGraphNode, updateGraphNodeId
Methods inherited from interface de.uni_trier.wi2.procake.data.PropertyHandler
addProperty, addProperty, getAllProperties, getAllPropertyNodes, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasProperties, removeProperty, setPropertyRootNode
-
Constructor Details
-
NESTSequentialWorkflowObjectImpl
-
-
Method Details
-
addGraphNode
Description copied from interface:NESTGraphObject
Adds the given graph-node to the internal list of registered graphnodes. Nodes are being bound automatically if they are connected to already bound edges. → Create the graph based on the startnode, so that all nodes/edges get automatically bound.- Specified by:
addGraphNode
in interfaceNESTGraphObject
- Overrides:
addGraphNode
in classNESTGraphObjectImpl
- Parameters:
newGraphNode
- The graphnode, which should be registered.
-
transformNESTGraphToNESTSequentialWorkflow
Description copied from interface:NESTSequentialWorkflowObject
Creates a new de facto resource from the given graphObject only if it indeed is a de facto workflow.- Specified by:
transformNESTGraphToNESTSequentialWorkflow
in interfaceNESTSequentialWorkflowObject
- Parameters:
nestGraph
- The graph object potentially representing a de facto workflow.
-
transformListObjectToNESTSequentialWorkflow
Description copied from interface:NESTSequentialWorkflowObject
Creates a new de facto resource from the given graphObject only if it indeed is a de facto workflow.- Specified by:
transformListObjectToNESTSequentialWorkflow
in interfaceNESTSequentialWorkflowObject
- Parameters:
listObject
- The list object potentially representing a de facto workflow.
-
getNESTTaskNodesInOrder
Description copied from interface:NESTSequentialWorkflowObject
Finds the ordered task nodes of this resource and returns them as a 1D array.- Specified by:
getNESTTaskNodesInOrder
in interfaceNESTSequentialWorkflowObject
- Returns:
- Array containing all the task nodes in order.
-
printTasks
public void printTasks()Description copied from interface:NESTSequentialWorkflowObject
Prints the tasks.- Specified by:
printTasks
in interfaceNESTSequentialWorkflowObject
-
getTasksAsString
Description copied from interface:NESTSequentialWorkflowObject
Returns the tasks in the string representation.- Specified by:
getTasksAsString
in interfaceNESTSequentialWorkflowObject
- Returns:
- The task in the string representation.
-
getStartNodes
Description copied from interface:NESTAbstractWorkflowObject
Returns the list of startNodes (nodes with no incoming NESTControlflowEdge) for this graph.- Specified by:
getStartNodes
in interfaceNESTAbstractWorkflowObject
- Overrides:
getStartNodes
in classNESTAbstractWorkflowObjectImpl
- Returns:
-
getEndNodes
Description copied from interface:NESTAbstractWorkflowObject
Returns the list of endNodes (nodes with no outgoing NESTControlflowEdge) for this graph.- Specified by:
getEndNodes
in interfaceNESTAbstractWorkflowObject
- Overrides:
getEndNodes
in classNESTAbstractWorkflowObjectImpl
- Returns:
-
getStartTaskNodes
Description copied from interface:NESTAbstractWorkflowObject
Returns all the task nodes that are not connected via controlflow-edge to predeccessor tasks (start task nodes)- Specified by:
getStartTaskNodes
in interfaceNESTAbstractWorkflowObject
- Overrides:
getStartTaskNodes
in classNESTAbstractWorkflowObjectImpl
- Returns:
- list of task nodes
-
getEndTaskNodes
Description copied from interface:NESTAbstractWorkflowObject
Returns all the task nodes that are not connected via controlflow-edge to successor tasks (end task nodes)- Specified by:
getEndTaskNodes
in interfaceNESTAbstractWorkflowObject
- Overrides:
getEndTaskNodes
in classNESTAbstractWorkflowObjectImpl
- Returns:
- list of task nodes
-
getSequenceNodes
Description copied from interface:NESTAbstractWorkflowObject
Returns the complete set of sequence nodes registered in the graph.- Specified by:
getSequenceNodes
in interfaceNESTAbstractWorkflowObject
- Overrides:
getSequenceNodes
in classNESTAbstractWorkflowObjectImpl
- Returns:
- Set of sequence nodes in the graph.
-
copy
Description copied from interface:DataObject
Makes a deep copy of the data object- Specified by:
copy
in interfaceDataObject
- Overrides:
copy
in classNESTGraphObjectImpl
- Returns:
- deep copy of the data object
-
copyNodeDeep
protected NESTNodeObject copyNodeDeep(NESTNodeObject node, Map<NESTNodeObject, NESTNodeObject> copiedNodes, Map<NESTEdgeObject, NESTEdgeObject> copiedEdges, NESTAbstractWorkflowObject nestWorkflow) - Specified by:
copyNodeDeep
in classNESTAbstractWorkflowObjectImpl
-