Interface INode2NodeTempusRelation

All Superinterfaces:
INode2NodeRelation, INodeRelation, Serializable
All Known Implementing Classes:
AbstractNode2NodeTempusRelation, NegativeRelativeTimeWindow2RelatedNodeRelation, RelativeTimeWindow2RelatedNodeRelation

public interface INode2NodeTempusRelation extends INode2NodeRelation
This interface provides additional methods for the comparison of the working start of masterNode and the relatedNode.
  • Method Details

    • setTimeComparisonJuncture

      void setTimeComparisonJuncture(boolean isMasterNodeWorkingStart, boolean isRelatedNodeWorkingStart)
      Defines which times are relevant in a 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 relevant
      isRelatedNodeWorkingStart - the boolean whether start or end of the work at the RelatedNode are relevant