Interface INode2NodeTempusRelation
- All Superinterfaces:
INode2NodeRelation
,INodeRelation
,Serializable
- All Known Implementing Classes:
AbstractNode2NodeTempusRelation
,NegativeRelativeTimeWindow2RelatedNodeRelation
,RelativeTimeWindow2RelatedNodeRelation
This interface provides additional methods for the comparison of the working start of
masterNode
and the relatedNode
.- Since:
- 26/07/2018
- Version:
- 12/09/2019
- Author:
- DNA
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setTimeComparisonJuncture
(boolean isMasterNodeWorkingStart, boolean isRelatedNodeWorkingStart) Defines which times are relevant in aRelativeTimeWindow2RelatedNodeRelation
.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
-
setTimeComparisonJuncture
void setTimeComparisonJuncture(boolean isMasterNodeWorkingStart, boolean isRelatedNodeWorkingStart) Defines which times are relevant in aRelativeTimeWindow2RelatedNodeRelation
. IfAbstractNode2NodeTempusRelation.isMasterNodeWorkingStart()
istrue
the arrival at theMasterNode
is relevant, iffalse
the end of thevisit duration
is relevant.
The example shown means that between the arrival at theINode2NodeRelation relation = new RelativeTimeWindow2RelatedNodeRelation( Duration.ofSeconds(0), Duration.ofHours(2)); relation.setTimeComparisonJuncture(true, false)
}MasterNode
and the end of the work at theRelatedNode
a maximum of two hours are allowed.
In the example above the work at thesetTimeComparisonJuncture(true, true)
RelatedNode
has to start within two hours after arrival at theMasterNode
- Parameters:
isMasterNodeWorkingStart
- the boolean whether start or end of the work at the MasterNode are relevantisRelatedNodeWorkingStart
- the boolean whether start or end of the work at the RelatedNode are relevant
-