Class AbstractNode2NodeTempusRelation
java.lang.Object
com.dna.jopt.member.unit.relation.node2node.AbstracNode2NodeRelation
com.dna.jopt.member.unit.relation.node2node.tempus.AbstractNode2NodeTempusRelation
- All Implemented Interfaces:
INode2NodeRelation,INodeRelation,INode2NodeTempusRelation,Serializable
- Direct Known Subclasses:
RelativeTimeWindow2RelatedNodeRelation
public abstract class AbstractNode2NodeTempusRelation
extends AbstracNode2NodeRelation
implements INode2NodeTempusRelation
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.dna.jopt.member.unit.relation.node2node.AbstracNode2NodeRelation
AbstracNode2NodeRelation.RelationMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidsetTimeComparisonJuncture(boolean isMasterNodeWorkingStart, boolean isRelatedNodeWorkingStart) Defines which times are relevant in aRelativeTimeWindow2RelatedNodeRelation.Methods inherited from class com.dna.jopt.member.unit.relation.node2node.AbstracNode2NodeRelation
checkRelation, getDetailsOfElement, getMasterNode, getRelatedNode, getRelatedNodes, getRelationMode, getRouteOfElement, hasValidRelatedItem, isFilterRelatedNodes, setMasterNode, setRelatedNode, setRelatedNodes, setRelationModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
AbstractNode2NodeTempusRelation
public AbstractNode2NodeTempusRelation()
-
-
Method Details
-
setTimeComparisonJuncture
public void setTimeComparisonJuncture(boolean isMasterNodeWorkingStart, boolean isRelatedNodeWorkingStart) Description copied from interface:INode2NodeTempusRelationDefines which times are relevant in aRelativeTimeWindow2RelatedNodeRelation. IfisMasterNodeWorkingStart()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- Specified by:
setTimeComparisonJuncturein interfaceINode2NodeTempusRelation- 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
-
isMasterNodeWorkingStart
public boolean isMasterNodeWorkingStart() -
isRelatedNodeWorkingStart
public boolean isRelatedNodeWorkingStart()
-