@Component class RouteOptimizerImpl extends Object implements RouteOptimizer, org.optaplanner.core.api.solver.event.SolverEventListener<org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution>
| Modifier and Type | Class and Description |
|---|---|
(package private) static interface |
RouteOptimizerImpl.SolvingTask |
| Constructor and Description |
|---|
RouteOptimizerImpl(org.springframework.context.ApplicationEventPublisher publisher,
org.optaplanner.core.api.solver.Solver<org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution> solver,
org.springframework.core.task.AsyncTaskExecutor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLocation(Location domainLocation,
DistanceMatrix distanceMatrix) |
void |
bestSolutionChanged(org.optaplanner.core.api.solver.event.BestSolutionChangedEvent<org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution> bestSolutionChangedEvent) |
void |
clear() |
(package private) boolean |
isSolving() |
void |
removeLocation(Location domainLocation) |
(package private) void |
stopSolver() |
@Autowired
RouteOptimizerImpl(org.springframework.context.ApplicationEventPublisher publisher,
org.optaplanner.core.api.solver.Solver<org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution> solver,
org.springframework.core.task.AsyncTaskExecutor executor)
boolean isSolving()
void stopSolver()
public void bestSolutionChanged(org.optaplanner.core.api.solver.event.BestSolutionChangedEvent<org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution> bestSolutionChangedEvent)
bestSolutionChanged in interface org.optaplanner.core.api.solver.event.SolverEventListener<org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution>public void addLocation(Location domainLocation, DistanceMatrix distanceMatrix)
addLocation in interface RouteOptimizerpublic void removeLocation(Location domainLocation)
removeLocation in interface RouteOptimizerpublic void clear()
clear in interface RouteOptimizerCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.