public class ActivityContext extends Object
| Constructor and Description |
|---|
ActivityContext() |
| Modifier and Type | Method and Description |
|---|---|
double |
getArrivalTime()
Returns arrival time at associated activity.
|
double |
getEndTime()
Returns end time of associated activity.
|
int |
getInsertionIndex()
Returns the insertion index of the associated vehicle.
|
void |
setArrivalTime(double arrivalTime)
Sets arrivalTime of associated vehicle at activity.
|
void |
setEndTime(double endTime)
Sets end time of associated activity.
|
void |
setInsertionIndex(int insertionIndex)
Sets insertion index of associated activity.
|
public double getArrivalTime()
public double getEndTime()
public int getInsertionIndex()
The associated activity is not inserted yet. The actual insertion position is still to be evaluated. Thus this insertion index is related to the potential insertion index which is the position before the activity at this index in the existing route.
if insertionIndex == 0, the associated activity will be inserted between start of vehicle and the first activity in activity sequence.
if insertionIndex == relatedRoute.getActivities().size(), the associated activity will be inserted between the last activity in the activity sequence and the end of vehicle.
public void setArrivalTime(double arrivalTime)
arrivalTime - arrival time of associated vehicle at activitypublic void setEndTime(double endTime)
endTime - end timepublic void setInsertionIndex(int insertionIndex)
insertionIndex - insertion index of associated activityCopyright © 2013–2019. All rights reserved.