Interface INode2NodeVisitorRelation
- All Superinterfaces:
INode2NodeRelation
,INodeRelation
,Serializable
- All Known Implementing Classes:
RelativeVisitor2RelatedNodeRelation
This interface provides methods to enforce same or different visitors.
- Since:
- 12/11/2018
- Version:
- 24/12/2020
- Author:
- DNA
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setIsForcedDifferentRoute
(boolean isForcedDifferentVisitor) Sets the checks if is forced different route.void
SetsRelativeVisitor2RelatedNodeRelation.needsForcedDifferentVisitor
totrue
and linkRelativeVisitor2RelatedNodeRelation.needsForcedSameVisitor
tofalse
.void
Sets the is forced same route.void
SetsRelativeVisitor2RelatedNodeRelation.needsForcedDifferentVisitor
tofalse
and linkRelativeVisitor2RelatedNodeRelation.needsForcedSameVisitor
totrue
.void
Sets the is forced same visitor forced different route.Methods inherited from interface com.dna.jopt.member.unit.relation.node2node.INode2NodeRelation
checkRelation, getRelatedNode, getRelatedNodes, hasValidRelatedItem, setRelatedNode, setRelatedNodes
Methods inherited from interface com.dna.jopt.member.unit.relation.node2node.INodeRelation
checkRelation, getMasterNode, getRelationMode, isFilterRelatedNodes, needsFullJobLevelEvaluation, setMasterNode, setRelationMode
-
Method Details
-
setIsForcedDifferentVisitor
void setIsForcedDifferentVisitor()SetsRelativeVisitor2RelatedNodeRelation.needsForcedDifferentVisitor
totrue
and linkRelativeVisitor2RelatedNodeRelation.needsForcedSameVisitor
tofalse
. -
setIsForcedSameVisitor
void setIsForcedSameVisitor()SetsRelativeVisitor2RelatedNodeRelation.needsForcedDifferentVisitor
tofalse
and linkRelativeVisitor2RelatedNodeRelation.needsForcedSameVisitor
totrue
. -
setIsForcedSameRoute
void setIsForcedSameRoute()Sets the is forced same route.Attached nodes should be visited within the same route.
-
setIsForcedDifferentRoute
void setIsForcedDifferentRoute(boolean isForcedDifferentVisitor) Sets the checks if is forced different route.Attached nodes should be visited in a different route.
- Parameters:
isForcedDifferentVisitor
- if true, a different visitor is also required.
-
setIsForcedSameVisitorForcedDifferentRoute
void setIsForcedSameVisitorForcedDifferentRoute()Sets the is forced same visitor forced different route.Attached nodes should be visited in a different route by the same visitor.
-