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 TypeMethodDescriptionvoidsetTimeComparisonJuncture(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, setRelatedNodesMethods 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()istruethe arrival at theMasterNodeis relevant, iffalsethe end of thevisit durationis relevant.
The example shown means that between the arrival at theINode2NodeRelation relation = new RelativeTimeWindow2RelatedNodeRelation( Duration.ofSeconds(0), Duration.ofHours(2)); relation.setTimeComparisonJuncture(true, false)}MasterNodeand the end of the work at theRelatedNodea maximum of two hours are allowed.
In the example above the work at thesetTimeComparisonJuncture(true, true)RelatedNodehas 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
-