java.lang.Object
com.graphhopper.jsprit.core.problem.solution.route.activity.TimeWindow

public class TimeWindow extends Object
TimeWindow consists of a startTime and endTime.
Author:
stefan schroeder
  • Constructor Details

    • TimeWindow

      public TimeWindow(double start, double end)
      Constructs the timeWindow
      Parameters:
      start -
      end -
  • Method Details

    • newInstance

      public static TimeWindow newInstance(double start, double end)
      Returns new instance of TimeWindow.
      Parameters:
      start -
      end -
      Returns:
      TimeWindow
    • getStart

      public double getStart()
      Returns startTime of TimeWindow.
      Returns:
      startTime
    • getEnd

      public double getEnd()
      Returns endTime of TimeWindow.
      Returns:
      endTime
    • larger

      public boolean larger(TimeWindow timeWindow)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Two timeWindows are equal if they have the same start AND endTime.
      Overrides:
      equals in class Object