fr.inria.oadymppac.solver
Class DefaultConstraintStatus
java.lang.Object
fr.inria.oadymppac.solver.SolverElementImpl
fr.inria.oadymppac.solver.DefaultConstraintStatus
- All Implemented Interfaces:
- ConstraintStatus, Indexable, SolverElement, SolverManagable, StateProvider, Status, UpdateCollection, VariableCollection
- public class DefaultConstraintStatus
- extends SolverElementImpl
- implements ConstraintStatus
- 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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultConstraintStatus
public DefaultConstraintStatus(Solver solver)
- Parameters:
solver
-
add
public void add(Update update)
addVariable
public void addVariable(Variable variable)
- Specified by:
addVariable
in interface VariableCollection
getOrigin
public java.lang.String getOrigin()
- Specified by:
getOrigin
in interface ConstraintStatus
getUpdates
public java.util.Collection getUpdates()
- Specified by:
getUpdates
in interface UpdateCollection
getVariables
public java.util.Collection getVariables()
- Specified by:
getVariables
in interface VariableCollection
setOrigin
public void setOrigin(java.lang.String origin)
- Specified by:
setOrigin
in interface ConstraintStatus
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 VariableCollection
getElement
public SolverMainElement getElement()
- Specified by:
getElement
in interface Status
getStatus
public java.lang.String getStatus()
- Specified by:
getStatus
in interface Status
setElement
public void setElement(SolverMainElement element)
- Specified by:
setElement
in interface Status
setStatus
public void setStatus(java.lang.String status)
- Specified by:
setStatus
in interface Status
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
clearVariables
public void clearVariables()
- Specified by:
clearVariables
in interface VariableCollection
countVariables
public int countVariables()
- Specified by:
countVariables
in interface VariableCollection
removeVariable
public void removeVariable(Variable variable)
- Specified by:
removeVariable
in interface VariableCollection
addUpdate
public void addUpdate(Update update)
- Specified by:
addUpdate
in interface UpdateCollection
clearUpdates
public void clearUpdates()
- Specified by:
clearUpdates
in interface UpdateCollection
countUpdates
public int countUpdates()
- Specified by:
countUpdates
in interface UpdateCollection
removeUpdate
public void removeUpdate(Update update)
- Specified by:
removeUpdate
in interface UpdateCollection
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.
getEventType
public java.lang.String getEventType()
- Specified by:
getEventType
in interface SolverElement
reset
public void reset()
- Specified by:
reset
in interface Indexable