|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fr.jussieu.gla.wasa.core.Problem
Represents a Problem, as a set of Vars, Constraints, etc.
Constructor Summary | |
Problem()
|
Method Summary | |
void |
add(Explorer explorer)
Adds an Explorer to the Problem. |
int |
add(Var var)
Adds a Var to the Problem. |
boolean |
contains(Constraint constraint)
|
Constraint |
getConstraint(int index)
|
int |
getConstraintCount()
|
Constraint[] |
getConstraints()
|
Engine |
getEngine()
|
ErrorMixer |
getErrorMixer()
|
Explorer |
getExplorer(int index)
|
int |
getExplorerCount()
|
Explorer[] |
getExplorers()
|
RandomConfigurator |
getRandomConfigurator()
|
Var |
getVar(int index)
Returns the Var with an instanciation rank equal to index. |
int |
getVarCount()
Returns the number of the problem Var s. |
Var[] |
getVars()
Returns all the Var s of the Problem in an array. |
void |
restore(Configuration configuration)
|
void |
setErrorMixer(ErrorMixer mixer)
|
void |
setRandomConfigurator(RandomConfigurator configurator)
Use this method to set the problem specific RandomConfigurator used to
initialize the buisness object and escape from a dead end. |
Configuration |
snapshot()
Creates a Configuration representing the current state of Buisness Objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Problem()
Method Detail |
public final Engine getEngine()
public ErrorMixer getErrorMixer()
public void setErrorMixer(ErrorMixer mixer)
public final int add(Var var)
var
- The Var to add.NullPointerException
- If var is null.ProblemStateException
- If Problem already initialized.public final Var[] getVars()
Var
s of the Problem in an array.public final int getVarCount()
Var
s.Var
s.public final Var getVar(int index)
Var
with an instanciation rank equal to index.Var
with an instanciation rank equal to index.public final void add(Explorer explorer)
explorer
- The Explorer to add.NullPointerException
- If explorer is null.ProblemStateException
- If Problem already initialized.public final Explorer[] getExplorers()
public final int getExplorerCount()
public final Explorer getExplorer(int index)
public final boolean contains(Constraint constraint)
public final Constraint[] getConstraints()
public final int getConstraintCount()
public final Constraint getConstraint(int index)
public final Configuration snapshot()
This method is declared public for test purposes, but should never be called from outside of this package.
IllegalProblemStateException
- If the Problem is not initialized.public final void restore(Configuration configuration)
public final RandomConfigurator getRandomConfigurator() throws EngineException
public final void setRandomConfigurator(RandomConfigurator configurator)
RandomConfigurator
used to
initialize the buisness object and escape from a dead end.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |