localsolverblackbox
public class LocalSolverBlackBox extends java.lang.Object
LSBBModel) by creating some expressions (LSBBExpression).LSBBParam).LocalSolverBlackBox).LSBBSolution).Note that this API is not thread safe. If multiple threads access and
modify a same LocalSolver environment, it must be synchronized. The only
methods that can be used without synchronization are getState() and
stop().
| Constructor and Description |
|---|
LocalSolverBlackBox() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete the LocalSolverBlackBox objects and release the licence token.
|
boolean |
equals(java.lang.Object obj) |
LSBBModel |
getModel()
Gets the model associated to this LocalSolverBlackBox environment.
|
LSBBParam |
getParam()
Gets the parameters of this LocalSolverBlackBox environment.
|
LSBBSolution |
getSolution()
Gets the best solution found by the solver.
|
LSBBState |
getState()
Gets the state of this LocalSolverBlackBox environment.
|
int |
hashCode() |
void |
solve()
Solves the model.
|
void |
stop()
Aborts the resolution previously launched using
solve(). |
java.lang.String |
toString() |
public void delete()
public LSBBState getState()
LSBBState.Running.public LSBBModel getModel()
solve().public LSBBParam getParam()
public void solve()
public void stop()
solve(). If no
resolution was launched, this method does nothing. Called from another
thread, this method enables users to stop the resolution properly.
Solution remains valid. This method can be called in any
state, notably in state LSBBState.Running.public LSBBSolution getSolution()
LSBBState.Paused or LSBBState.Stopped.public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object