Class PickupShipment
java.lang.Object
com.graphhopper.jsprit.core.problem.AbstractActivity
com.graphhopper.jsprit.core.problem.solution.route.activity.PickupShipment
- All Implemented Interfaces:
HasIndex,PickupActivity,TourActivity,TourActivity.JobActivity
-
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 TypeMethodDescriptionMakes a deep copy of this activity.doubleReturns the arrival-time of this activity.doubleReturns end-time of this activity.getJob()Returns the job that is involved with 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().voidsetArrTime(double arrTime) Sets the arrival time of that activity.voidsetEndTime(double endTime) Sets the end-time of this activity.voidsetTheoreticalEarliestOperationStartTime(double earliest) voidsetTheoreticalLatestOperationStartTime(double latest) toString()Methods inherited from class com.graphhopper.jsprit.core.problem.AbstractActivity
getIndex, setIndex
-
Constructor Details
-
PickupShipment
-
-
Method Details
-
getJob
Description copied from interface:TourActivity.JobActivityReturns the job that is involved with this activity.- Specified by:
getJobin interfaceTourActivity.JobActivity- Returns:
- job
-
setTheoreticalEarliestOperationStartTime
public void setTheoreticalEarliestOperationStartTime(double earliest) - Specified by:
setTheoreticalEarliestOperationStartTimein interfaceTourActivity
-
setTheoreticalLatestOperationStartTime
public void setTheoreticalLatestOperationStartTime(double latest) - Specified by:
setTheoreticalLatestOperationStartTimein interfaceTourActivity
-
getName
Description copied from interface:TourActivityReturns the name of this activity.- Specified by:
getNamein interfaceTourActivity- Returns:
- name
-
getLocation
Description copied from interface:TourActivityReturns location.- Specified by:
getLocationin interfaceTourActivity- Returns:
- location
-
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
-
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
-
getArrTime
public double getArrTime()Description copied from interface:TourActivityReturns the arrival-time of this activity.- Specified by:
getArrTimein interfaceTourActivity- Returns:
- arrival time
-
getEndTime
public double getEndTime()Description copied from interface:TourActivityReturns end-time of this activity.- Specified by:
getEndTimein interfaceTourActivity- Returns:
- end time
-
setArrTime
public void setArrTime(double arrTime) Description copied from interface:TourActivitySets the arrival time of that activity.- Specified by:
setArrTimein interfaceTourActivity- Parameters:
arrTime-
-
setEndTime
public void setEndTime(double endTime) Description copied from interface:TourActivitySets the end-time of this activity.- Specified by:
setEndTimein interfaceTourActivity- Parameters:
endTime-
-
duplicate
Description copied from interface:TourActivityMakes a deep copy of this activity.- Specified by:
duplicatein interfaceTourActivity- Returns:
- copied activity
-
toString
-
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
-