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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
setTimeComparisonJuncture
(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, setRelationMode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
-
Constructor Details
-
AbstractNode2NodeTempusRelation
public AbstractNode2NodeTempusRelation()
-
-
Method Details
-
setTimeComparisonJuncture
public void setTimeComparisonJuncture(boolean isMasterNodeWorkingStart, boolean isRelatedNodeWorkingStart) Description copied from interface:INode2NodeTempusRelation
Defines which times are relevant in aRelativeTimeWindow2RelatedNodeRelation
. IfisMasterNodeWorkingStart()
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
- Specified by:
setTimeComparisonJuncture
in 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()
-