Class TimeWindow
java.lang.Object
com.graphhopper.jsprit.core.problem.solution.route.activity.TimeWindow
TimeWindow consists of a startTime and endTime.
- Author:
- stefan schroeder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo timeWindows are equal if they have the same start AND endTime.doublegetEnd()Returns endTime of TimeWindow.doublegetStart()Returns startTime of TimeWindow.inthashCode()booleanlarger(TimeWindow timeWindow) static TimeWindownewInstance(double start, double end) Returns new instance of TimeWindow.toString()
-
Constructor Details
-
TimeWindow
public TimeWindow(double start, double end) Constructs the timeWindow- Parameters:
start-end-
-
-
Method Details
-
newInstance
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
-
toString
-
hashCode
public int hashCode() -
equals
Two timeWindows are equal if they have the same start AND endTime.
-