Toggle navigation
Home
org.optaplanner.core.api.solver.Solver to org.optaplanner.core.api.solver.Solver<org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution>
No. of Instances - 4
No. of Commits - 1
No. of Projects - {'optaplanner'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Cascading Type Change (Different)
SolverEventListener
to
SolverEventListener<VehicleRoutingSolution>
BestSolutionChangedEvent
to
BestSolutionChangedEvent<VehicleRoutingSolution>
ConcurrentHashMap<String,Solver>
to
ConcurrentHashMap<String,Solver<VehicleRoutingSolution>>
Update Anonymous class
{ @Override public void run(){ solver.solve(solution); VehicleRoutingSolution bestSolution=(VehicleRoutingSolution)solver.getBestSolution(); synchronized (VehicleRoutingSolverManager.this) { sessionSolutionMap.put(sessionId,bestSolution); sessionSolverMap.remove(sessionId); } } }
to
{ @Override public void run(){ VehicleRoutingSolution bestSolution=solver.solve(solution); synchronized (VehicleRoutingSolverManager.this) { sessionSolutionMap.put(sessionId,bestSolution); sessionSolverMap.remove(sessionId); } } }
{ @Override public void run(){ solver.solve(solution); VehicleRoutingSolution bestSolution=(VehicleRoutingSolution)solver.getBestSolution(); synchronized (VehicleRoutingSolverManager.this) { sessionSolutionMap.put(sessionId,bestSolution); sessionSolverMap.remove(sessionId); } } }
to
{ @Override public void run(){ VehicleRoutingSolution bestSolution=solver.solve(solution); synchronized (VehicleRoutingSolverManager.this) { sessionSolutionMap.put(sessionId,bestSolution); sessionSolverMap.remove(sessionId); } } }