|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.palm.dbt.search.PalmAbstractSolverTool
choco.palm.dbt.search.PalmState
public class PalmState
Tool for maintaining the state of the search taht is the active posted decision constraint.
Field Summary | |
---|---|
protected static java.util.logging.Logger |
logger
|
protected PalmExplanation |
path
The current state. |
Fields inherited from class choco.palm.dbt.search.PalmAbstractSolverTool |
---|
manager |
Constructor Summary | |
---|---|
PalmState(PalmExplanation expl)
Initializes the PalmState with the specified explain. |
Method Summary | |
---|---|
void |
addDecision(AbstractConstraint constraint)
Adds a new decision constraints in the state. |
boolean |
discardCurrentSolution()
Discards the current solutions in order to find the next one : it raises a fake contradiction and tries repairing the state. |
PalmExplanation |
getPath()
|
void |
removeDecision(AbstractConstraint constraint)
Removes a decision constraint. |
void |
reverseDecision(AbstractConstraint constraint)
Reverses a decision constraint. |
Methods inherited from class choco.palm.dbt.search.PalmAbstractSolverTool |
---|
getManager, setManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.logging.Logger logger
protected PalmExplanation path
Constructor Detail |
---|
public PalmState(PalmExplanation expl)
expl
- The initial state.Method Detail |
---|
public PalmExplanation getPath()
public void addDecision(AbstractConstraint constraint)
constraint
- New decision constraint posted.public void reverseDecision(AbstractConstraint constraint)
constraint
- The constraint to reverse.public void removeDecision(AbstractConstraint constraint)
constraint
- The involved constraint.public boolean discardCurrentSolution()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |