Class TspTimeWindowConstraint

    • Constructor Detail

      • TspTimeWindowConstraint

        public TspTimeWindowConstraint​(TimeWindow[] timeWindows,
                                       int timeCostIndex)
    • Method Detail

      • reset

        public void reset()
        Description copied from interface: TspConstraint
        This method allows a stateful network constraint object to be reset to its original state and reused by network analysis functions.
        Specified by:
        reset in interface TspConstraint
      • setNetworkAnalyst

        public void setNetworkAnalyst​(NetworkAnalyst analyst)
        Description copied from interface: TspConstraint
        This method allows caller to pass the network analyst object to this constraint, so that the constraint can call the analysis functions provided by the network analyst, or access the network explorer associated with the network analyst. If network analyst is not needed by the constraint, the link level selector can choose to do nothing with this method.
        Specified by:
        setNetworkAnalyst in interface TspConstraint
      • setTimeWindows

        public void setTimeWindows​(TimeWindow[] timeWindows)
      • getTimeWindows

        public TimeWindow[] getTimeWindows()
      • setTimeCostIndex

        public void setTimeCostIndex​(int timeCostIndex)
      • getTimeCostIndex

        public int getTimeCostIndex()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object