fr.inria.oadymppac.solver
Class DefaultSolution

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
                  extended byfr.inria.oadymppac.solver.DefaultSolution
All Implemented Interfaces:
ChronoProvider, DepthProvider, Indexable, SearchNode, Solution, SolverElement, SolverMainElement, SolverManagable, StateProvider

public class DefaultSolution
extends BasicSearchNode
implements Solution

Author:
raf TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Field Summary
static java.lang.String SEARCHNODE_TYPE
           
 
Fields inherited from interface fr.inria.oadymppac.solver.Solution
EVENT_TYPE
 
Fields inherited from interface fr.inria.oadymppac.solver.SearchNode
NONE
 
Constructor Summary
DefaultSolution(Solver solver)
           
 
Method Summary
 java.lang.String getEventType()
           
 java.lang.String getSearchNodeType()
           
 int getValue()
           
 void reset()
           
 void setValue(int value)
           
 
Methods inherited from class fr.inria.oadymppac.solver.BasicSearchNode
addChoiceConstraint, clearChoiceConstraints, countChoiceConstraint, getChoiceConstraints, getKey, getLabel, getName, getState, removeChoiceConstraint, setChoiceConstraints, setName, setState, toString
 
Methods inherited from class fr.inria.oadymppac.solver.AbstractSearchNode
getIdentifier, getSolverType, 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
addChoiceConstraint, clearChoiceConstraints, countChoiceConstraint, getChoiceConstraints, getIdentifier, getName, removeChoiceConstraint, setChoiceConstraints, setIdentifier, setName
 
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
getLabel, getSolverType
 
Methods inherited from interface fr.inria.oadymppac.utils.Indexable
getIndex, getKey, 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
 
Methods inherited from interface fr.inria.oadymppac.solver.StateProvider
getState, setState
 

Field Detail

SEARCHNODE_TYPE

public static final java.lang.String SEARCHNODE_TYPE
See Also:
Constant Field Values
Constructor Detail

DefaultSolution

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

getSearchNodeType

public java.lang.String getSearchNodeType()
Specified by:
getSearchNodeType in class AbstractSearchNode

getValue

public int getValue()
Specified by:
getValue in interface Solution
Returns:
Returns the value.

setValue

public void setValue(int value)
Specified by:
setValue in interface Solution
Parameters:
value - The value to set.

getEventType

public java.lang.String getEventType()
Specified by:
getEventType in interface SolverElement
Overrides:
getEventType in class AbstractSearchNode

reset

public void reset()
Specified by:
reset in interface Indexable
Overrides:
reset in class AbstractSearchNode