Class End
java.lang.Object
com.graphhopper.jsprit.core.problem.AbstractActivity
com.graphhopper.jsprit.core.problem.solution.route.activity.End
- All Implemented Interfaces:
HasIndex,TourActivity
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.graphhopper.jsprit.core.problem.solution.route.activity.TourActivity
TourActivity.JobActivity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EndMakes a deep copy of this activity.doubleReturns the arrival-time of this activity.doubleReturns end-time of this activity.Returns location.getName()Returns the name of this activity.doubleReturns the operation-time this activity takes.getSize()Returns the capacity-demand of that activity, in terms of what needs to be loaded or unloaded at this activity.doubleReturns the theoretical earliest operation start time, which is the time that is just allowed (not earlier) to start this activity, that is for exampleservice.getTimeWindow().getStart().doubleReturns the theoretical latest operation start time, which is the time that is just allowed (not later) to start this activity, that is for exampleservice.getTimeWindow().getEnd().static EndnewInstance(String locationId, double earliestArrival, double latestArrival) voidsetArrTime(double arrTime) Sets the arrival time of that activity.voidsetEndTime(double endTime) Sets the end-time of this activity.voidsetLocation(Location location) voidsetTheoreticalEarliestOperationStartTime(double theoreticalEarliestOperationStartTime) voidsetTheoreticalLatestOperationStartTime(double theoreticalLatestOperationStartTime) toString()Methods inherited from class com.graphhopper.jsprit.core.problem.AbstractActivity
getIndex, setIndex
-
Constructor Details
-
End
-
End
-
End
-
-
Method Details
-
newInstance
-
copyOf
-
setTheoreticalEarliestOperationStartTime
public void setTheoreticalEarliestOperationStartTime(double theoreticalEarliestOperationStartTime) - Specified by:
setTheoreticalEarliestOperationStartTimein interfaceTourActivity
-
setTheoreticalLatestOperationStartTime
public void setTheoreticalLatestOperationStartTime(double theoreticalLatestOperationStartTime) - Specified by:
setTheoreticalLatestOperationStartTimein interfaceTourActivity
-
getTheoreticalEarliestOperationStartTime
public double getTheoreticalEarliestOperationStartTime()Description copied from interface:TourActivityReturns the theoretical earliest operation start time, which is the time that is just allowed (not earlier) to start this activity, that is for exampleservice.getTimeWindow().getStart().- Specified by:
getTheoreticalEarliestOperationStartTimein interfaceTourActivity- Returns:
- earliest start time
-
getTheoreticalLatestOperationStartTime
public double getTheoreticalLatestOperationStartTime()Description copied from interface:TourActivityReturns the theoretical latest operation start time, which is the time that is just allowed (not later) to start this activity, that is for exampleservice.getTimeWindow().getEnd().- Specified by:
getTheoreticalLatestOperationStartTimein interfaceTourActivity- Returns:
- latest start time
-
getEndTime
public double getEndTime()Description copied from interface:TourActivityReturns end-time of this activity.- Specified by:
getEndTimein interfaceTourActivity- Returns:
- end time
-
setEndTime
public void setEndTime(double endTime) Description copied from interface:TourActivitySets the end-time of this activity.- Specified by:
setEndTimein interfaceTourActivity- Parameters:
endTime-
-
setLocation
-
getLocation
Description copied from interface:TourActivityReturns location.- Specified by:
getLocationin interfaceTourActivity- Returns:
- location
-
getOperationTime
public double getOperationTime()Description copied from interface:TourActivityReturns the operation-time this activity takes.Note that this is not necessarily the duration of this activity, but the service time a pickup/delivery actually takes, that is for example
service.getServiceTime().- Specified by:
getOperationTimein interfaceTourActivity- Returns:
- operation time
-
toString
-
getName
Description copied from interface:TourActivityReturns the name of this activity.- Specified by:
getNamein interfaceTourActivity- Returns:
- name
-
getArrTime
public double getArrTime()Description copied from interface:TourActivityReturns the arrival-time of this activity.- Specified by:
getArrTimein interfaceTourActivity- Returns:
- arrival time
-
setArrTime
public void setArrTime(double arrTime) Description copied from interface:TourActivitySets the arrival time of that activity.- Specified by:
setArrTimein interfaceTourActivity- Parameters:
arrTime-
-
duplicate
Description copied from interface:TourActivityMakes a deep copy of this activity.- Specified by:
duplicatein interfaceTourActivity- Returns:
- copied activity
-
getSize
Description copied from interface:TourActivityReturns the capacity-demand of that activity, in terms of what needs to be loaded or unloaded at this activity.- Specified by:
getSizein interfaceTourActivity- Returns:
- capacity
-