Class NESTSequentialWorkflowValidatorImpl
java.lang.Object
de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTGraphValidatorImpl
de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTSequentialWorkflowValidatorImpl
- All Implemented Interfaces:
NESTGraphValidator
,NESTSequentialWorkflowValidator
public class NESTSequentialWorkflowValidatorImpl
extends NESTGraphValidatorImpl
implements NESTSequentialWorkflowValidator
Implementation of the
NESTSequentialWorkflowValidator
.- Author:
- Alexander Schultheis
-
Field Summary
Fields inherited from class de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTGraphValidatorImpl
errorMessage, isValidGraph, logger
-
Constructor Summary
ConstructorDescriptionNESTSequentialWorkflowValidatorImpl
(NESTAbstractWorkflowObject sequentialWorkflow) -
Method Summary
Modifier and TypeMethodDescriptiongetGraph()
This method returns the graph object for which the validator was created.boolean
This method checks if all data nodes in the sequential workflow are valid.boolean
This method verifies that the sequential workflow has only one end node and that it is a task node.boolean
This method checks that the sequential workflow contains only task and data nodes and one workflow node.boolean
This method verifies that the sequential workflow is a valid sequence.boolean
This method verifies that the sequential workflow has only one start node and that it is a task node.boolean
This method checks whether the workflow is a valid nest sequential workflow.void
reset()
The method resets all values stored in the validator.Methods inherited from class de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTGraphValidatorImpl
getErrorMessage, getUniqueEdgeIDs, getUniqueNodeIDs, hasFullyConnectedAndNoDuplicateEdges, hasUniqueEdgeIDs, hasUniqueNodeIDs, hasValidSemanticDescriptors, isValidGraph, log
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.nest.utils.NESTGraphValidator
getErrorMessage, hasFullyConnectedAndNoDuplicateEdges, hasUniqueEdgeIDs, hasUniqueNodeIDs, hasValidSemanticDescriptors, isValidGraph
-
Field Details
-
sequentialWorkflow
-
-
Constructor Details
-
NESTSequentialWorkflowValidatorImpl
-
-
Method Details
-
reset
public void reset()Description copied from interface:NESTGraphValidator
The method resets all values stored in the validator. This method is to be used when changes have been made to the graph object after validation by the validator.- Specified by:
reset
in interfaceNESTGraphValidator
- Overrides:
reset
in classNESTGraphValidatorImpl
-
isValidSequentialWorkflow
public boolean isValidSequentialWorkflow()Description copied from interface:NESTSequentialWorkflowValidator
This method checks whether the workflow is a valid nest sequential workflow. It checks if it is a valid graph, if it has a valid start and end node, if the node types and the sequence as well as the data nodes are correct. See methodsNESTGraphValidator.isValidGraph()
,NESTSequentialWorkflowValidator.hasValidStartNode()
,NESTSequentialWorkflowValidator.hasValidEndNode()
,NESTSequentialWorkflowValidator.hasValidNodeTypes()
,NESTSequentialWorkflowValidator.hasValidSequence()
andNESTSequentialWorkflowValidator.hasValidDataNodes()
.- Specified by:
isValidSequentialWorkflow
in interfaceNESTSequentialWorkflowValidator
- Returns:
- True, if sequential workflow is valid.
-
hasValidStartNode
public boolean hasValidStartNode()Description copied from interface:NESTSequentialWorkflowValidator
This method verifies that the sequential workflow has only one start node and that it is a task node.- Specified by:
hasValidStartNode
in interfaceNESTSequentialWorkflowValidator
- Returns:
- True, if start node is valid.
-
hasValidEndNode
public boolean hasValidEndNode()Description copied from interface:NESTSequentialWorkflowValidator
This method verifies that the sequential workflow has only one end node and that it is a task node.- Specified by:
hasValidEndNode
in interfaceNESTSequentialWorkflowValidator
- Returns:
- True, if end node is valid.
-
hasValidNodeTypes
public boolean hasValidNodeTypes()Description copied from interface:NESTSequentialWorkflowValidator
This method checks that the sequential workflow contains only task and data nodes and one workflow node.- Specified by:
hasValidNodeTypes
in interfaceNESTSequentialWorkflowValidator
- Returns:
- True, if all node types are valid.
-
hasValidSequence
public boolean hasValidSequence()Description copied from interface:NESTSequentialWorkflowValidator
This method verifies that the sequential workflow is a valid sequence. This means that each task node may have only one following task node and all task nodes must be between start and end nodes.- Specified by:
hasValidSequence
in interfaceNESTSequentialWorkflowValidator
- Returns:
- True, if sequence is valid.
-
hasValidDataNodes
public boolean hasValidDataNodes()Description copied from interface:NESTSequentialWorkflowValidator
This method checks if all data nodes in the sequential workflow are valid. This is the case if all data nodes are connected to task nodes.- Specified by:
hasValidDataNodes
in interfaceNESTSequentialWorkflowValidator
- Returns:
- True, if all data nodes are valid.
-
getGraph
Description copied from interface:NESTGraphValidator
This method returns the graph object for which the validator was created.- Specified by:
getGraph
in interfaceNESTGraphValidator
- Specified by:
getGraph
in interfaceNESTSequentialWorkflowValidator
- Overrides:
getGraph
in classNESTGraphValidatorImpl
- Returns:
- The graph object for which the validator was created.
-