Class VehicleRoutingAlgorithmListeners
java.lang.Object
com.graphhopper.jsprit.core.algorithm.listener.VehicleRoutingAlgorithmListeners
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddAll(Collection<VehicleRoutingAlgorithmListeners.PrioritizedVRAListener> algorithmListeners) voidaddListener(VehicleRoutingAlgorithmListener listener) voidaddListener(VehicleRoutingAlgorithmListener listener, VehicleRoutingAlgorithmListeners.Priority priority) voidalgorithmEnds(VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions) voidalgorithmStarts(VehicleRoutingProblem problem, VehicleRoutingAlgorithm algorithm, Collection<VehicleRoutingProblemSolution> solutions) voiditerationEnds(int i, VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions) voiditerationStarts(int i, VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions) voidvoidselectedStrategy(SearchStrategy.DiscoveredSolution discoveredSolution, VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions)
-
Constructor Details
-
VehicleRoutingAlgorithmListeners
public VehicleRoutingAlgorithmListeners()
-
-
Method Details
-
getAlgorithmListeners
-
remove
-
addListener
public void addListener(VehicleRoutingAlgorithmListener listener, VehicleRoutingAlgorithmListeners.Priority priority) -
addListener
-
algorithmEnds
public void algorithmEnds(VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions) -
iterationEnds
public void iterationEnds(int i, VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions) -
iterationStarts
public void iterationStarts(int i, VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions) -
algorithmStarts
public void algorithmStarts(VehicleRoutingProblem problem, VehicleRoutingAlgorithm algorithm, Collection<VehicleRoutingProblemSolution> solutions) -
add
-
addAll
public void addAll(Collection<VehicleRoutingAlgorithmListeners.PrioritizedVRAListener> algorithmListeners) -
selectedStrategy
public void selectedStrategy(SearchStrategy.DiscoveredSolution discoveredSolution, VehicleRoutingProblem problem, Collection<VehicleRoutingProblemSolution> solutions)
-