public class SolverExecutor extends RunnableBase
| Modifier and Type | Class and Description |
|---|---|
static class |
SolverExecutor.SolverExecutorException |
RunnableBase.Statusstatus| Constructor and Description |
|---|
SolverExecutor(SolverDef solverDef,
KieServerRegistry registry,
org.optaplanner.core.api.solver.event.SolverEventListener<TaskAssigningSolution> eventListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProblemFactChanges(List<org.optaplanner.core.impl.solver.ProblemFactChange<TaskAssigningSolution>> changes)
Thread-safe method that adds a list of ProblemFactChanges to the current solver.
|
protected org.optaplanner.core.api.solver.Solver<TaskAssigningSolution> |
buildSolver(SolverDef solverDef,
KieServerRegistry registry) |
void |
destroy()
This method programmes the subsequent finalization of the solver (if it was started) that will be produced as
soon as possible by invoking the solver.terminateEarly() method.
|
boolean |
isStarted() |
boolean |
isStopped() |
void |
run() |
void |
start(TaskAssigningSolution solution)
This method is invoked from a different thread for starting the solver and must be invoked only one time.
|
void |
stop()
Stops the solver.
|
isAlive, isDestroyedpublic SolverExecutor(SolverDef solverDef, KieServerRegistry registry, org.optaplanner.core.api.solver.event.SolverEventListener<TaskAssigningSolution> eventListener)
public void start(TaskAssigningSolution solution)
solution - a valid solution for starting the solver with.protected org.optaplanner.core.api.solver.Solver<TaskAssigningSolution> buildSolver(SolverDef solverDef, KieServerRegistry registry)
public boolean isStarted()
public boolean isStopped()
public void stop()
public void destroy()
destroy in class RunnableBasepublic void addProblemFactChanges(List<org.optaplanner.core.impl.solver.ProblemFactChange<TaskAssigningSolution>> changes)
changes - a list of problem fact changes to program in current solver.public void run()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.