- java.lang.Object
-
- java.lang.Enum<NoDelta>
-
- org.chocosolver.solver.variables.delta.NoDelta
-
- All Implemented Interfaces:
Serializable
,Comparable<NoDelta>
,IDelta
,IEnumDelta
,IIntervalDelta
,IntDelta
,ISetDelta
public enum NoDelta extends Enum<NoDelta> implements IEnumDelta, IIntervalDelta, ISetDelta
- Since:
- 10/02/11
- Author:
- Charles Prud'homme
-
-
Enum Constant Summary
Enum Constants Enum Constant Description singleton
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int lb, int ub, ICause cause)
Adds a new value interval to the deltavoid
add(int value, ICause cause)
Adds a new value to the deltaint
get(int idx)
Return the idx^th value stored in the delta, if anyint
get(int index, int kerOrEnv)
ICause
getCause(int idx)
Return the cause of the idx^th cause stored in the delta, if anyICause
getCause(int index, int kerOrEnv)
IEnvironment
getEnvironment()
Return the associate environmentint
getLB(int idx)
Return the lower bound of idx^th interval stored in the delta, if anyint
getSize(int kerOrEnv)
int
getUB(int idx)
Return the upper bound idx^th interval stored in the delta, if anyvoid
lazyClear()
Lazy clear the delta, on world changeint
size()
Returns the number of elementstatic NoDelta
valueOf(String name)
Returns the enum constant of this type with the specified name.static NoDelta[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
singleton
public static final NoDelta singleton
-
-
Method Detail
-
values
public static NoDelta[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NoDelta c : NoDelta.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NoDelta valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
add
public void add(int value, ICause cause)
Description copied from interface:IEnumDelta
Adds a new value to the delta- Specified by:
add
in interfaceIEnumDelta
- Parameters:
value
- value to addcause
- of the removal
-
lazyClear
public void lazyClear()
Description copied from interface:IDelta
Lazy clear the delta, on world change
-
getEnvironment
public IEnvironment getEnvironment()
Description copied from interface:IDelta
Return the associate environment- Specified by:
getEnvironment
in interfaceIDelta
- Returns:
- associated environment
-
add
public void add(int lb, int ub, ICause cause)
Description copied from interface:IIntervalDelta
Adds a new value interval to the delta- Specified by:
add
in interfaceIIntervalDelta
- Specified by:
add
in interfaceISetDelta
- Parameters:
lb
- lower bound of removed intervalub
- upper bound of removed intervalcause
- of the removal
-
getLB
public int getLB(int idx) throws IndexOutOfBoundsException
Description copied from interface:IIntervalDelta
Return the lower bound of idx^th interval stored in the delta, if any- Specified by:
getLB
in interfaceIIntervalDelta
- Parameters:
idx
- rank of the interval- Returns:
- idx^th interval
- Throws:
IndexOutOfBoundsException
- if idx is out of the bounds
-
getUB
public int getUB(int idx) throws IndexOutOfBoundsException
Description copied from interface:IIntervalDelta
Return the upper bound idx^th interval stored in the delta, if any- Specified by:
getUB
in interfaceIIntervalDelta
- Parameters:
idx
- rank of the interval- Returns:
- idx^th interval
- Throws:
IndexOutOfBoundsException
- if idx is out of the bounds
-
get
public int get(int idx)
Description copied from interface:IEnumDelta
Return the idx^th value stored in the delta, if any- Specified by:
get
in interfaceIEnumDelta
- Parameters:
idx
- rank of the value- Returns:
- idx^th value
-
getCause
public ICause getCause(int idx)
Description copied from interface:IntDelta
Return the cause of the idx^th cause stored in the delta, if any
-
size
public int size()
Description copied from interface:IntDelta
Returns the number of element
-
-