Interface TourActivity
- All Superinterfaces:
HasIndex
- All Known Subinterfaces:
DeliveryActivity,PickupActivity,TourActivity.JobActivity
- All Known Implementing Classes:
AbstractActivity,ActWithoutStaticLocation,BreakActivity,DeliverService,DeliverShipment,End,EnRouteDeliveryActivity,EnRoutePickupActivity,PickupService,PickupShipment,ServiceActivity,Start
Basic interface for tour-activities.
A tour activity is the basic element of a tour, which is consequently a sequence of tour-activities.
- Author:
- schroeder
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBasic interface of job-activies. -
Method Summary
Modifier and TypeMethodDescriptionMakes 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().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)
-
Method Details
-
setTheoreticalEarliestOperationStartTime
void setTheoreticalEarliestOperationStartTime(double earliest) -
setTheoreticalLatestOperationStartTime
void setTheoreticalLatestOperationStartTime(double latest) -
getName
String getName()Returns the name of this activity.- Returns:
- name
-
getLocation
Location getLocation()Returns location.- Returns:
- location
-
getTheoreticalEarliestOperationStartTime
double getTheoreticalEarliestOperationStartTime()Returns 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().- Returns:
- earliest start time
-
getTheoreticalLatestOperationStartTime
double getTheoreticalLatestOperationStartTime()Returns 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().- Returns:
- latest start time
-
getOperationTime
double getOperationTime()Returns 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().- Returns:
- operation time
-
getArrTime
double getArrTime()Returns the arrival-time of this activity.- Returns:
- arrival time
-
getEndTime
double getEndTime()Returns end-time of this activity.- Returns:
- end time
-
setArrTime
void setArrTime(double arrTime) Sets the arrival time of that activity.- Parameters:
arrTime-
-
setEndTime
void setEndTime(double endTime) Sets the end-time of this activity.- Parameters:
endTime-
-
getSize
Capacity getSize()Returns the capacity-demand of that activity, in terms of what needs to be loaded or unloaded at this activity.- Returns:
- capacity
-
duplicate
TourActivity duplicate()Makes a deep copy of this activity.- Returns:
- copied activity
-