fr.inria.oadymppac.solver
Class DefaultConstraint

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

Field Summary
 
Fields inherited from interface fr.inria.oadymppac.solver.Constraint
EVENT_TYPE, NONE
 
Constructor Summary
DefaultConstraint(Solver solver)
           
 
Method Summary
 void addUpdate(Update update)
           
 void addVariable(Variable variable)
           
 void clearUpdates()
           
 void clearVariables()
           
 int countUpdates()
           
 int countVariables()
           
 java.lang.String getExternal()
           
 java.lang.String getInternal()
           
 java.lang.String getLabel()
           
 java.lang.String getName()
           
 java.lang.String getOrigin()
           
 State getState()
           
 java.util.Collection getUpdates()
           
 java.util.Collection getVariables()
           
 void removeUpdate(Update update)
           
 void removeVariable(Variable variable)
           
 void setExternal(java.lang.String external)
           
 void setInternal(java.lang.String internal)
           
 void setName(java.lang.String name)
           
 void setOrigin(java.lang.String origin)
           
 void setState(State state)
           
 void setUpdates(java.util.Collection updts)
           
 void setVariables(java.util.Collection vars)
           
 java.lang.String toString()
           
 
Methods inherited from class fr.inria.oadymppac.solver.AbstractConstraint
getEventType, getIdentifier, getKey, 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.Constraint
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, getKey, 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

DefaultConstraint

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

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.