fr.inria.oadymppac.solver
Class BasicSearchNode
java.lang.Object
fr.inria.oadymppac.solver.SolverElementImpl
fr.inria.oadymppac.solver.SolverMainElementImpl
fr.inria.oadymppac.solver.AbstractSearchNode
fr.inria.oadymppac.solver.BasicSearchNode
- All Implemented Interfaces:
- ChronoProvider, DepthProvider, Indexable, SearchNode, SolverElement, SolverMainElement, SolverManagable, StateProvider
- Direct Known Subclasses:
- DefaultChoicePoint, DefaultFailure, DefaultSolution
- public abstract class BasicSearchNode
- extends AbstractSearchNode
- implements SearchNode
- 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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BasicSearchNode
public BasicSearchNode(Solver solver)
- Parameters:
solver
-
getName
public java.lang.String getName()
- Specified by:
getName
in interface SearchNode
- Returns:
- Returns the name.
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface SearchNode
- Parameters:
name
- The name to set.
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interface SolverElement
getKey
public java.lang.Object getKey()
- Specified by:
getKey
in interface Indexable
- Overrides:
getKey
in class AbstractSearchNode
getState
public State getState()
- Specified by:
getState
in interface StateProvider
- Returns:
- Returns the state.
setState
public void setState(State state)
- Specified by:
setState
in interface StateProvider
- Parameters:
state
- The state to set.
addChoiceConstraint
public void addChoiceConstraint(ChoiceConstraint choiceConstraint)
- Specified by:
addChoiceConstraint
in interface SearchNode
countChoiceConstraint
public int countChoiceConstraint()
- Specified by:
countChoiceConstraint
in interface SearchNode
getChoiceConstraints
public java.util.Collection getChoiceConstraints()
- Specified by:
getChoiceConstraints
in interface SearchNode
removeChoiceConstraint
public void removeChoiceConstraint(ChoiceConstraint choiceConstraint)
- Specified by:
removeChoiceConstraint
in interface SearchNode
setChoiceConstraints
public void setChoiceConstraints(java.util.Collection choices)
- Specified by:
setChoiceConstraints
in interface SearchNode
toString
public java.lang.String toString()
- Overrides:
toString
in class SolverMainElementImpl
clearChoiceConstraints
public void clearChoiceConstraints()
- Specified by:
clearChoiceConstraints
in interface SearchNode