public class InsertionListeners extends Object
| Constructor and Description |
|---|
InsertionListeners() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllListeners(Collection<InsertionListener> listeners) |
void |
addListener(InsertionListener insertionListener) |
Collection<InsertionListener> |
getListeners() |
void |
informBeforeJobInsertion(Job job,
InsertionData data,
VehicleRoute route) |
void |
informInsertionEndsListeners(Collection<VehicleRoute> vehicleRoutes) |
void |
informInsertionStarts(Collection<VehicleRoute> vehicleRoutes,
Collection<Job> unassignedJobs) |
void |
informJobInserted(Job insertedJob,
VehicleRoute inRoute,
double additionalCosts,
double additionalTime) |
void |
informVehicleSwitched(VehicleRoute route,
Vehicle oldVehicle,
Vehicle newVehicle) |
void |
removeListener(InsertionListener insertionListener) |
public Collection<InsertionListener> getListeners()
public void informJobInserted(Job insertedJob, VehicleRoute inRoute, double additionalCosts, double additionalTime)
public void informVehicleSwitched(VehicleRoute route, Vehicle oldVehicle, Vehicle newVehicle)
public void informBeforeJobInsertion(Job job, InsertionData data, VehicleRoute route)
public void informInsertionStarts(Collection<VehicleRoute> vehicleRoutes, Collection<Job> unassignedJobs)
public void informInsertionEndsListeners(Collection<VehicleRoute> vehicleRoutes)
public void addListener(InsertionListener insertionListener)
public void removeListener(InsertionListener insertionListener)
public void addAllListeners(Collection<InsertionListener> listeners)
Copyright © 2013–2016. All rights reserved.