public class ServiceActivity extends AbstractActivity implements TourActivity.JobActivity
TourActivity.JobActivity| Modifier | Constructor and Description |
|---|---|
protected |
ServiceActivity(Service service) |
protected |
ServiceActivity(ServiceActivity serviceActivity) |
| Modifier and Type | Method and Description |
|---|---|
static ServiceActivity |
copyOf(ServiceActivity serviceActivity) |
TourActivity |
duplicate()
Makes a deep copy of this activity.
|
boolean |
equals(Object obj) |
double |
getArrTime()
Returns the arrival-time of this activity.
|
double |
getEndTime()
Returns end-time of this activity.
|
Service |
getJob()
Returns the job that is involved with 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(). |
int |
hashCode() |
static ServiceActivity |
newInstance(Service service) |
void |
setArrTime(double arrTime)
Sets the arrival time of that activity.
|
void |
setEndTime(double endTime)
Sets the end-time of this activity.
|
void |
setTheoreticalEarliestOperationStartTime(double earliest) |
void |
setTheoreticalLatestOperationStartTime(double latest) |
String |
toString() |
getIndex, setIndexprotected ServiceActivity(Service service)
protected ServiceActivity(ServiceActivity serviceActivity)
public double getArrTime()
TourActivitygetArrTime in interface TourActivitypublic void setArrTime(double arrTime)
TourActivitysetArrTime in interface TourActivityarrTime - the arrTime to setpublic double getEndTime()
TourActivitygetEndTime in interface TourActivitypublic void setEndTime(double endTime)
TourActivitysetEndTime in interface TourActivityendTime - the endTime to setpublic static ServiceActivity copyOf(ServiceActivity serviceActivity)
public static ServiceActivity newInstance(Service service)
public double getTheoreticalEarliestOperationStartTime()
TourActivityservice.getTimeWindow().getStart().getTheoreticalEarliestOperationStartTime in interface TourActivitypublic double getTheoreticalLatestOperationStartTime()
TourActivityservice.getTimeWindow().getEnd().getTheoreticalLatestOperationStartTime in interface TourActivitypublic void setTheoreticalEarliestOperationStartTime(double earliest)
setTheoreticalEarliestOperationStartTime in interface TourActivitypublic void setTheoreticalLatestOperationStartTime(double latest)
setTheoreticalLatestOperationStartTime 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 Location getLocation()
TourActivitygetLocation in interface TourActivitypublic Service getJob()
TourActivity.JobActivitygetJob in interface TourActivity.JobActivitypublic String getName()
TourActivitygetName in interface TourActivitypublic TourActivity duplicate()
TourActivityduplicate in interface TourActivitypublic Capacity getSize()
TourActivitygetSize in interface TourActivityCopyright © 2013–2019. All rights reserved.