public class AlgorithmEventsRecorder extends Object implements RuinListener, IterationStartsListener, InsertionStartsListener, BeforeJobInsertionListener, InsertionEndsListener, AlgorithmEndsListener
| Modifier and Type | Field and Description |
|---|---|
static int |
BEFORE_RUIN_RENDER_SOLUTION |
static int |
CLEAR_SOLUTION |
static int |
RECREATE |
static int |
RUIN |
| Constructor and Description |
|---|
AlgorithmEventsRecorder(VehicleRoutingProblem vrp,
String dgsFileLocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
informAlgorithmEnds(VehicleRoutingProblem problem,
Collection<VehicleRoutingProblemSolution> solutions) |
void |
informBeforeJobInsertion(Job job,
InsertionData data,
VehicleRoute route) |
void |
informInsertionEnds(Collection<VehicleRoute> vehicleRoutes,
Collection<Job> badJobs) |
void |
informInsertionStarts(Collection<VehicleRoute> vehicleRoutes,
Collection<Job> unassignedJobs) |
void |
informIterationStarts(int i,
VehicleRoutingProblem problem,
Collection<VehicleRoutingProblemSolution> solutions) |
void |
removed(Job job,
VehicleRoute fromRoute) |
void |
ruinEnds(Collection<VehicleRoute> routes,
Collection<Job> unassignedJobs) |
void |
ruinStarts(Collection<VehicleRoute> routes) |
void |
setRecordingRange(int startIteration,
int endIteration) |
public static final int BEFORE_RUIN_RENDER_SOLUTION
public static final int RUIN
public static final int RECREATE
public static final int CLEAR_SOLUTION
public AlgorithmEventsRecorder(VehicleRoutingProblem vrp, String dgsFileLocation)
public void setRecordingRange(int startIteration,
int endIteration)
public void ruinStarts(Collection<VehicleRoute> routes)
ruinStarts in interface RuinListenerpublic void ruinEnds(Collection<VehicleRoute> routes, Collection<Job> unassignedJobs)
ruinEnds in interface RuinListenerpublic void removed(Job job, VehicleRoute fromRoute)
removed in interface RuinListenerpublic void informAlgorithmEnds(VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions)
informAlgorithmEnds in interface AlgorithmEndsListenerpublic void informIterationStarts(int i,
VehicleRoutingProblem problem,
Collection<VehicleRoutingProblemSolution> solutions)
informIterationStarts in interface IterationStartsListenerpublic void informInsertionEnds(Collection<VehicleRoute> vehicleRoutes, Collection<Job> badJobs)
informInsertionEnds in interface InsertionEndsListenerpublic void informBeforeJobInsertion(Job job, InsertionData data, VehicleRoute route)
informBeforeJobInsertion in interface BeforeJobInsertionListenerpublic void informInsertionStarts(Collection<VehicleRoute> vehicleRoutes, Collection<Job> unassignedJobs)
informInsertionStarts in interface InsertionStartsListenerCopyright © 2013–2020. All rights reserved.