public final class End extends AbstractActivity implements TourActivity
TourActivity.JobActivity| Constructor and Description |
|---|
End(End end) |
End(Location location,
double theoreticalStart,
double theoreticalEnd) |
End(String locationId,
double theoreticalStart,
double theoreticalEnd) |
| Modifier and Type | Method and Description |
|---|---|
static End |
copyOf(End end) |
TourActivity |
duplicate()
Makes a deep copy of this activity.
|
double |
getArrTime()
Returns the arrival-time of this activity.
|
double |
getEndTime()
Returns end-time of this activity.
|
Location |
getLocation()
Returns location.
|
String |
getName()
Returns the name of this activity.
|
double |
getOperationTime()
Returns the operation-time this activity takes.
|
Capacity |
getSize()
Returns the capacity-demand of that activity, in terms of what needs to be loaded or unloaded at
this activity.
|
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 example
service.getTimeWindow().getStart(). |
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 example
service.getTimeWindow().getEnd(). |
static End |
newInstance(String locationId,
double earliestArrival,
double latestArrival) |
void |
setArrTime(double arrTime)
Sets the arrival time of that activity.
|
void |
setEndTime(double endTime)
Sets the end-time of this activity.
|
void |
setLocation(Location location) |
void |
setTheoreticalEarliestOperationStartTime(double theoreticalEarliestOperationStartTime) |
void |
setTheoreticalLatestOperationStartTime(double theoreticalLatestOperationStartTime) |
String |
toString() |
getIndex, setIndexpublic End(Location location, double theoreticalStart, double theoreticalEnd)
public End(String locationId, double theoreticalStart, double theoreticalEnd)
public End(End end)
public static End newInstance(String locationId, double earliestArrival, double latestArrival)
public void setTheoreticalEarliestOperationStartTime(double theoreticalEarliestOperationStartTime)
setTheoreticalEarliestOperationStartTime in interface TourActivitypublic void setTheoreticalLatestOperationStartTime(double theoreticalLatestOperationStartTime)
setTheoreticalLatestOperationStartTime in interface TourActivitypublic double getTheoreticalEarliestOperationStartTime()
TourActivityservice.getTimeWindow().getStart().getTheoreticalEarliestOperationStartTime in interface TourActivitypublic double getTheoreticalLatestOperationStartTime()
TourActivityservice.getTimeWindow().getEnd().getTheoreticalLatestOperationStartTime in interface TourActivitypublic double getEndTime()
TourActivitygetEndTime in interface TourActivitypublic void setEndTime(double endTime)
TourActivitysetEndTime in interface TourActivitypublic void setLocation(Location location)
public Location getLocation()
TourActivitygetLocation in interface TourActivitypublic double getOperationTime()
TourActivity
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().
getOperationTime in interface TourActivitypublic String getName()
TourActivitygetName in interface TourActivitypublic double getArrTime()
TourActivitygetArrTime in interface TourActivitypublic void setArrTime(double arrTime)
TourActivitysetArrTime in interface TourActivitypublic TourActivity duplicate()
TourActivityduplicate in interface TourActivitypublic Capacity getSize()
TourActivitygetSize in interface TourActivityCopyright © 2013–2024. All rights reserved.