fr.inria.oadymppac.solver
Class DefaultState
java.lang.Object
fr.inria.oadymppac.solver.SolverElementImpl
fr.inria.oadymppac.solver.SolverMainElementImpl
fr.inria.oadymppac.solver.DefaultState
- All Implemented Interfaces:
- ChronoProvider, ConstraintStatusCollection, DepthProvider, Indexable, SolverElement, SolverMainElement, SolverManagable, State, UpdateCollection, VariableStatusCollection
- public class DefaultState
- extends SolverMainElementImpl
- implements State
- Author:
- raf
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Generation - Code and Comments
Methods inherited from class fr.inria.oadymppac.solver.SolverMainElementImpl |
getChrono, getContext, getDepth, getFile, getLine, getSolver, getTime, setChrono, setContext, setDepth, setFile, setLine, setSolver, setTime, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultState
public DefaultState(Solver solver)
- Parameters:
solver
-
getEventType
public java.lang.String getEventType()
- Specified by:
getEventType
in interface SolverElement
getCurrentNode
public SearchNode getCurrentNode()
- Specified by:
getCurrentNode
in interface State
getMisc
public java.lang.String getMisc()
- Specified by:
getMisc
in interface State
getName
public java.lang.String getName()
- Specified by:
getName
in interface State
setCurrentNode
public void setCurrentNode(SearchNode node)
- Specified by:
setCurrentNode
in interface State
setMisc
public void setMisc(java.lang.String misc)
- Specified by:
setMisc
in interface State
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface State
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interface SolverElement
getSolverType
public byte getSolverType()
- Specified by:
getSolverType
in interface SolverElement
getKey
public java.lang.Object getKey()
- Specified by:
getKey
in interface Indexable
addConstraint
public void addConstraint(ConstraintStatus constraint)
- Specified by:
addConstraint
in interface ConstraintStatusCollection
addUpdate
public void addUpdate(Update update)
- Specified by:
addUpdate
in interface UpdateCollection
addVariable
public void addVariable(VariableStatus variable)
- Specified by:
addVariable
in interface VariableStatusCollection
countConstraints
public int countConstraints()
- Specified by:
countConstraints
in interface ConstraintStatusCollection
countUpdates
public int countUpdates()
- Specified by:
countUpdates
in interface UpdateCollection
countVariables
public int countVariables()
- Specified by:
countVariables
in interface VariableStatusCollection
getConstraints
public java.util.Collection getConstraints()
- Specified by:
getConstraints
in interface ConstraintStatusCollection
getUpdates
public java.util.Collection getUpdates()
- Specified by:
getUpdates
in interface UpdateCollection
getVariables
public java.util.Collection getVariables()
- Specified by:
getVariables
in interface VariableStatusCollection
removeConstraint
public void removeConstraint(ConstraintStatus constraint)
- Specified by:
removeConstraint
in interface ConstraintStatusCollection
removeUpdate
public void removeUpdate(Update update)
- Specified by:
removeUpdate
in interface UpdateCollection
removeVariable
public void removeVariable(VariableStatus variable)
- Specified by:
removeVariable
in interface VariableStatusCollection
setConstraints
public void setConstraints(java.util.Collection constraints)
- Specified by:
setConstraints
in interface ConstraintStatusCollection
setUpdates
public void setUpdates(java.util.Collection updates)
- Specified by:
setUpdates
in interface UpdateCollection
setVariables
public void setVariables(java.util.Collection variables)
- Specified by:
setVariables
in interface VariableStatusCollection
clearVariables
public void clearVariables()
- Specified by:
clearVariables
in interface VariableStatusCollection
clearConstraints
public void clearConstraints()
- Specified by:
clearConstraints
in interface ConstraintStatusCollection
clearUpdates
public void clearUpdates()
- Specified by:
clearUpdates
in interface UpdateCollection
reset
public void reset()
- Specified by:
reset
in interface Indexable