fr.inria.oadymppac.solver
Class DefaultDomain
java.lang.Object
fr.inria.oadymppac.solver.SolverElementImpl
fr.inria.oadymppac.solver.ValueListImpl
fr.inria.oadymppac.solver.DefaultDomain
- All Implemented Interfaces:
- ChronoProvider, DepthProvider, Domain, Indexable, SolverElement, SolverManagable, ValueList
- public class DefaultDomain
- extends ValueListImpl
- implements Domain
- 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 |
DefaultDomain
public DefaultDomain(Solver solver)
- Parameters:
solver
-
getChrono
public int getChrono()
- Specified by:
getChrono
in interface ChronoProvider
- Returns:
- Returns the chrono.
getComputedMax
public int getComputedMax()
- Specified by:
getComputedMax
in interface Domain
getComputedMin
public int getComputedMin()
- Specified by:
getComputedMin
in interface Domain
getComputedSize
public int getComputedSize()
- Specified by:
getComputedSize
in interface Domain
getDepth
public int getDepth()
- Specified by:
getDepth
in interface DepthProvider
- Returns:
- Returns the depth.
getKey
public java.lang.Object getKey()
- Specified by:
getKey
in interface Indexable
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interface SolverElement
getMax
public int getMax()
- Specified by:
getMax
in interface ValueList
- Overrides:
getMax
in class ValueListImpl
- Returns:
- Returns the max.
getMin
public int getMin()
- Specified by:
getMin
in interface ValueList
- Overrides:
getMin
in class ValueListImpl
- Returns:
- Returns the min.
getSize
public int getSize()
- Specified by:
getSize
in interface ValueList
- Overrides:
getSize
in class ValueListImpl
- Returns:
- Returns the size.
getSolverType
public byte getSolverType()
- Specified by:
getSolverType
in interface SolverElement
getVariable
public Variable getVariable()
- Specified by:
getVariable
in interface Domain
setChrono
public void setChrono(int chrono)
- Specified by:
setChrono
in interface ChronoProvider
- Parameters:
chrono
- The chrono to set.
setDepth
public void setDepth(int depth)
- Specified by:
setDepth
in interface DepthProvider
- Parameters:
depth
- The depth to set.
setMax
public void setMax(int max)
- Specified by:
setMax
in interface ValueList
- Overrides:
setMax
in class ValueListImpl
- Parameters:
max
- The max to set.
setMin
public void setMin(int min)
- Specified by:
setMin
in interface ValueList
- Overrides:
setMin
in class ValueListImpl
- Parameters:
min
- The min to set.
setSize
public void setSize(int size)
- Specified by:
setSize
in interface ValueList
- Overrides:
setSize
in class ValueListImpl
- Parameters:
size
- The size to set.
setVariable
public void setVariable(Variable variable)
- Specified by:
setVariable
in interface Domain
getEventType
public java.lang.String getEventType()
- Specified by:
getEventType
in interface SolverElement
reset
public void reset()
- Specified by:
reset
in interface Indexable