public interface INode2NodeTempusRelation extends INode2NodeRelation
masterNode
and the relatedNode
.Modifier and Type | Method and Description |
---|---|
void |
setTimeComparisonJuncture(boolean isMasterNodeWorkingStart,
boolean isRelatedNodeWorkingStart)
Defines which times are relevant in a
RelativeTimeWindow2RelatedNodeRelation . |
checkRelation, getRelatedNode, getRelatedNodes, setRelatedNode, setRelatedNodes
checkRelation, getMasterNode, getRelationMode, isFilterRelatedNodes, needsFullJobLevelEvaluation, setMasterNode, setRelationMode
void setTimeComparisonJuncture(boolean isMasterNodeWorkingStart, boolean isRelatedNodeWorkingStart)
RelativeTimeWindow2RelatedNodeRelation
. If AbstractNode2NodeTempusRelation.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
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 relevantCopyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.