Class InsertionListeners
java.lang.Object
com.graphhopper.jsprit.core.algorithm.recreate.listener.InsertionListeners
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllListeners(Collection<InsertionListener> listeners) voidaddListener(InsertionListener insertionListener) voidinformBeforeJobInsertion(Job job, InsertionData data, VehicleRoute route) voidinformInsertionEndsListeners(Collection<VehicleRoute> vehicleRoutes, Collection<Job> badJobs) voidinformInsertionStarts(Collection<VehicleRoute> vehicleRoutes, Collection<Job> unassignedJobs) voidinformJobInserted(Job insertedJob, VehicleRoute inRoute, InsertionData insertionData) voidinformJobUnassignedListeners(Job unassigned, List<String> reasons) voidinformVehicleSwitched(VehicleRoute route, Vehicle oldVehicle, Vehicle newVehicle) voidremoveListener(InsertionListener insertionListener)
-
Constructor Details
-
InsertionListeners
public InsertionListeners()
-
-
Method Details
-
getListeners
-
informJobInserted
-
informVehicleSwitched
-
informBeforeJobInsertion
-
informInsertionStarts
public void informInsertionStarts(Collection<VehicleRoute> vehicleRoutes, Collection<Job> unassignedJobs) -
informInsertionEndsListeners
public void informInsertionEndsListeners(Collection<VehicleRoute> vehicleRoutes, Collection<Job> badJobs) -
informJobUnassignedListeners
-
addListener
-
removeListener
-
addAllListeners
-