fr.inria.oadymppac.solver
Class BasicSearchNode

java.lang.Object
  extended byfr.inria.oadymppac.solver.SolverElementImpl
      extended byfr.inria.oadymppac.solver.SolverMainElementImpl
          extended byfr.inria.oadymppac.solver.AbstractSearchNode
              extended byfr.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

Field Summary
 
Fields inherited from interface fr.inria.oadymppac.solver.SearchNode
EVENT_TYPE, NONE
 
Constructor Summary
BasicSearchNode(Solver solver)
           
 
Method Summary
 void addChoiceConstraint(ChoiceConstraint choiceConstraint)
           
 void clearChoiceConstraints()
           
 int countChoiceConstraint()
           
 java.util.Collection getChoiceConstraints()
           
 java.lang.Object getKey()
           
 java.lang.String getLabel()
           
 java.lang.String getName()
           
 State getState()
           
 void removeChoiceConstraint(ChoiceConstraint choiceConstraint)
           
 void setChoiceConstraints(java.util.Collection choices)
           
 void setName(java.lang.String name)
           
 void setState(State state)
           
 java.lang.String toString()
           
 
Methods inherited from class fr.inria.oadymppac.solver.AbstractSearchNode
getEventType, getIdentifier, getSearchNodeType, getSolverType, reset, setIdentifier
 
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 fr.inria.oadymppac.solver.SolverElementImpl
getIndex, setIndex
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fr.inria.oadymppac.solver.SearchNode
getIdentifier, setIdentifier
 
Methods inherited from interface fr.inria.oadymppac.solver.SolverMainElement
getContext, getFile, getLine, getTime, setContext, setFile, setLine, setTime
 
Methods inherited from interface fr.inria.oadymppac.solver.SolverElement
getEventType, getSolverType
 
Methods inherited from interface fr.inria.oadymppac.utils.Indexable
getIndex, reset, setIndex
 
Methods inherited from interface fr.inria.oadymppac.solver.SolverManagable
getSolver, setSolver
 
Methods inherited from interface fr.inria.oadymppac.solver.DepthProvider
getDepth, setDepth
 
Methods inherited from interface fr.inria.oadymppac.solver.ChronoProvider
getChrono, setChrono
 

Constructor Detail

BasicSearchNode

public BasicSearchNode(Solver solver)
Parameters:
solver -
Method Detail

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