public class JobInsertionContext extends Object
| Constructor and Description |
|---|
JobInsertionContext(VehicleRoute route,
Job job,
Vehicle newVehicle,
Driver newDriver,
double newDepTime)
Constructs the context.
|
| Modifier and Type | Method and Description |
|---|---|
ActivityContext |
getActivityContext() |
List<TourActivity> |
getAssociatedActivities() |
Job |
getJob()
Returns the job that needs to be inserted.
|
double |
getNewDepTime()
Returns the new departure time at the new vehicle's start location.
|
Driver |
getNewDriver()
Returns the driver that should operate the new route, i.e.
|
Vehicle |
getNewVehicle()
Returns the vehicle that should operate the new route, i.e.
|
ActivityContext |
getRelatedActivityContext()
Returns pickup context.
|
VehicleRoute |
getRoute()
Returns the existing route where the .getJob() needs to be inserted in.
|
void |
setActivityContext(ActivityContext activityContext) |
void |
setRelatedActivityContext(ActivityContext relatedActivityContext)
Sets pickup context.
|
public JobInsertionContext(VehicleRoute route, Job job, Vehicle newVehicle, Driver newDriver, double newDepTime)
route - the existing route where the job needs to be inserted injob - the job to be insertednewVehicle - the new vehicle that should operate the new routenewDriver - the new driver that should operate the new routenewDepTime - the new departure time at the new vehicle's start locationpublic VehicleRoute getRoute()
public Job getJob()
public Vehicle getNewVehicle()
this.getRoute() + new job this.getJob().public Driver getNewDriver()
this.getRoute() + new job this.getJob().
Currently the driver is just a mock, it has no functions
public double getNewDepTime()
public List<TourActivity> getAssociatedActivities()
public void setRelatedActivityContext(ActivityContext relatedActivityContext)
relatedActivityContext - pickup contextpublic ActivityContext getRelatedActivityContext()
public void setActivityContext(ActivityContext activityContext)
public ActivityContext getActivityContext()
Copyright © 2013–2019. All rights reserved.