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 theNESTSequentialWorkflowValidator.- Author:
- Alexander Schultheis
-
-
Field Summary
Fields Modifier and Type Field Description protected NESTAbstractWorkflowObjectsequentialWorkflow-
Fields inherited from class de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTGraphValidatorImpl
errorMessage, isValidGraph, logger
-
-
Constructor Summary
Constructors Constructor Description NESTSequentialWorkflowValidatorImpl(NESTAbstractWorkflowObject sequentialWorkflow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NESTAbstractWorkflowObjectgetGraph()This method returns the graph object for which the validator was created.booleanhasValidDataNodes()This method checks if all data nodes in the sequential workflow are valid.booleanhasValidEndNode()This method verifies that the sequential workflow has only one end node and that it is a task node.booleanhasValidNodeTypes()This method checks that the sequential workflow contains only task and data nodes and one workflow node.booleanhasValidSequence()This method verifies that the sequential workflow is a valid sequence.booleanhasValidStartNode()This method verifies that the sequential workflow has only one start node and that it is a task node.booleanisValidSequentialWorkflow()This method checks whether the workflow is a valid nest sequential workflow.voidreset()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 Detail
-
sequentialWorkflow
protected NESTAbstractWorkflowObject sequentialWorkflow
-
-
Constructor Detail
-
NESTSequentialWorkflowValidatorImpl
public NESTSequentialWorkflowValidatorImpl(NESTAbstractWorkflowObject sequentialWorkflow)
-
-
Method Detail
-
reset
public void reset()
Description copied from interface:NESTGraphValidatorThe 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:
resetin interfaceNESTGraphValidator- Overrides:
resetin classNESTGraphValidatorImpl
-
isValidSequentialWorkflow
public boolean isValidSequentialWorkflow()
Description copied from interface:NESTSequentialWorkflowValidatorThis 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:
isValidSequentialWorkflowin interfaceNESTSequentialWorkflowValidator- Returns:
- True, if sequential workflow is valid.
-
hasValidStartNode
public boolean hasValidStartNode()
Description copied from interface:NESTSequentialWorkflowValidatorThis method verifies that the sequential workflow has only one start node and that it is a task node.- Specified by:
hasValidStartNodein interfaceNESTSequentialWorkflowValidator- Returns:
- True, if start node is valid.
-
hasValidEndNode
public boolean hasValidEndNode()
Description copied from interface:NESTSequentialWorkflowValidatorThis method verifies that the sequential workflow has only one end node and that it is a task node.- Specified by:
hasValidEndNodein interfaceNESTSequentialWorkflowValidator- Returns:
- True, if end node is valid.
-
hasValidNodeTypes
public boolean hasValidNodeTypes()
Description copied from interface:NESTSequentialWorkflowValidatorThis method checks that the sequential workflow contains only task and data nodes and one workflow node.- Specified by:
hasValidNodeTypesin interfaceNESTSequentialWorkflowValidator- Returns:
- True, if all node types are valid.
-
hasValidSequence
public boolean hasValidSequence()
Description copied from interface:NESTSequentialWorkflowValidatorThis 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:
hasValidSequencein interfaceNESTSequentialWorkflowValidator- Returns:
- True, if sequence is valid.
-
hasValidDataNodes
public boolean hasValidDataNodes()
Description copied from interface:NESTSequentialWorkflowValidatorThis 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:
hasValidDataNodesin interfaceNESTSequentialWorkflowValidator- Returns:
- True, if all data nodes are valid.
-
getGraph
public NESTAbstractWorkflowObject getGraph()
Description copied from interface:NESTGraphValidatorThis method returns the graph object for which the validator was created.- Specified by:
getGraphin interfaceNESTGraphValidator- Specified by:
getGraphin interfaceNESTSequentialWorkflowValidator- Overrides:
getGraphin classNESTGraphValidatorImpl- Returns:
- The graph object for which the validator was created.
-
-