fr.inria.oadymppac.solver
Class DefaultConstraintStatus

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

Field Summary
 
Fields inherited from interface fr.inria.oadymppac.solver.ConstraintStatus
EVENT_TYPE
 
Constructor Summary
DefaultConstraintStatus(Solver solver)
           
 
Method Summary
 void add(Update update)
           
 void addUpdate(Update update)
           
 void addVariable(Variable variable)
           
 void clearUpdates()
           
 void clearVariables()
           
 int countUpdates()
           
 int countVariables()
           
 SolverMainElement getElement()
           
 java.lang.String getEventType()
           
 java.lang.Object getKey()
           
 java.lang.String getLabel()
           
 java.lang.String getOrigin()
           
 byte getSolverType()
           
 State getState()
           
 java.lang.String getStatus()
           
 java.util.Collection getUpdates()
           
 java.util.Collection getVariables()
           
 void removeUpdate(Update update)
           
 void removeVariable(Variable variable)
           
 void reset()
           
 void setElement(SolverMainElement element)
           
 void setOrigin(java.lang.String origin)
           
 void setState(State state)
           
 void setStatus(java.lang.String status)
           
 void setUpdates(java.util.Collection updates)
           
 void setVariables(java.util.Collection variables)
           
 
Methods inherited from class fr.inria.oadymppac.solver.SolverElementImpl
getIndex, getSolver, setIndex, setSolver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.inria.oadymppac.utils.Indexable
getIndex, setIndex
 
Methods inherited from interface fr.inria.oadymppac.solver.SolverManagable
getSolver, setSolver
 

Constructor Detail

DefaultConstraintStatus

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

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