fr.inria.oadymppac.solver
Class DefaultConstraint
java.lang.Object
fr.inria.oadymppac.solver.SolverElementImpl
fr.inria.oadymppac.solver.SolverMainElementImpl
fr.inria.oadymppac.solver.AbstractConstraint
fr.inria.oadymppac.solver.DefaultConstraint
- All Implemented Interfaces:
- ChronoProvider, Constraint, DepthProvider, Indexable, SolverElement, SolverMainElement, SolverManagable, StateProvider, UpdateCollection, VariableCollection
- public class DefaultConstraint
- extends AbstractConstraint
- implements Constraint
- 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 |
DefaultConstraint
public DefaultConstraint(Solver solver)
- Parameters:
solver
-
getExternal
public java.lang.String getExternal()
- Specified by:
getExternal
in interface Constraint
- Returns:
- Returns the external.
setExternal
public void setExternal(java.lang.String external)
- Specified by:
setExternal
in interface Constraint
- Parameters:
external
- The external to set.
getInternal
public java.lang.String getInternal()
- Specified by:
getInternal
in interface Constraint
- Returns:
- Returns the internal.
setInternal
public void setInternal(java.lang.String internal)
- Specified by:
setInternal
in interface Constraint
- Parameters:
internal
- The internal to set.
getName
public java.lang.String getName()
- Specified by:
getName
in interface Constraint
- Returns:
- Returns the name.
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interface Constraint
- Parameters:
name
- The name to set.
getVariables
public java.util.Collection getVariables()
- Specified by:
getVariables
in interface VariableCollection
- Returns:
- Returns the variables.
setVariables
public void setVariables(java.util.Collection vars)
- Specified by:
setVariables
in interface VariableCollection
addVariable
public void addVariable(Variable variable)
- Specified by:
addVariable
in interface VariableCollection
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
getUpdates
public java.util.Collection getUpdates()
- Specified by:
getUpdates
in interface UpdateCollection
- Returns:
- Returns the updates.
setUpdates
public void setUpdates(java.util.Collection updts)
- Specified by:
setUpdates
in interface UpdateCollection
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
toString
public java.lang.String toString()
- Overrides:
toString
in class SolverMainElementImpl
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interface SolverElement
getOrigin
public java.lang.String getOrigin()
- Specified by:
getOrigin
in interface Constraint
- Returns:
- Returns the origin.
setOrigin
public void setOrigin(java.lang.String origin)
- Specified by:
setOrigin
in interface Constraint
- Parameters:
origin
- The origin to set.
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.