public abstract class AbstractNode2NodeTempusRelation extends AbstracNode2NodeRelation implements INode2NodeTempusRelation
AbstracNode2NodeRelation.RelationMode
Constructor and Description |
---|
AbstractNode2NodeTempusRelation() |
Modifier and Type | Method and Description |
---|---|
boolean |
isMasterNodeWorkingStart() |
boolean |
isRelatedNodeWorkingStart() |
void |
setTimeComparisonJuncture(boolean isMasterNodeWorkingStart,
boolean isRelatedNodeWorkingStart)
Defines which times are relevant in a
RelativeTimeWindow2RelatedNodeRelation . |
checkRelation, getDetailsOfElement, getMasterNode, getRelatedNode, getRelatedNodes, getRelationMode, getRouteOfElement, isFilterRelatedNodes, setMasterNode, setRelatedNode, setRelatedNodes, setRelationMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkRelation, getRelatedNode, getRelatedNodes, setRelatedNode, setRelatedNodes
checkRelation, getMasterNode, getRelationMode, isFilterRelatedNodes, needsFullJobLevelEvaluation, setMasterNode, setRelationMode
public void setTimeComparisonJuncture(boolean isMasterNodeWorkingStart, boolean isRelatedNodeWorkingStart)
INode2NodeTempusRelation
RelativeTimeWindow2RelatedNodeRelation
. If isMasterNodeWorkingStart()
is true
the arrival at the MasterNode
is relevant, if
false
the end of the visit duration
is relevant.
INode2NodeRelation relation =
new RelativeTimeWindow2RelatedNodeRelation(
Duration.ofSeconds(0), Duration.ofHours(2));
relation.setTimeComparisonJuncture(true, false)
}
The example shown means that between the arrival at the MasterNode
and the end of the work at the
RelatedNode
a maximum of two hours are allowed.
setTimeComparisonJuncture(true, true)
In the example above the work at the RelatedNode
has to start within two hours after arrival at the
MasterNode
setTimeComparisonJuncture
in interface INode2NodeTempusRelation
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 relevantpublic boolean isMasterNodeWorkingStart()
public boolean isRelatedNodeWorkingStart()
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.