Enum NoDelta
- 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 voidadd(int lb, int ub, ICause cause)Adds a new value interval to the deltavoidadd(int value, ICause cause)Adds a new value to the deltaintget(int idx)Return the idx^th value stored in the delta, if anyintget(int index, int kerOrEnv)ICausegetCause(int idx)Return the cause of the idx^th cause stored in the delta, if anyICausegetCause(int index, int kerOrEnv)IEnvironmentgetEnvironment()Return the associate environmentintgetLB(int idx)Return the lower bound of idx^th interval stored in the delta, if anyintgetSize(int kerOrEnv)intgetUB(int idx)Return the upper bound idx^th interval stored in the delta, if anyvoidlazyClear()Lazy clear the delta, on world changeintsize()Returns the number of elementstatic NoDeltavalueOf(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:IEnumDeltaAdds a new value to the delta- Specified by:
addin interfaceIEnumDelta- Parameters:
value- value to addcause- of the removal
-
lazyClear
public void lazyClear()
Description copied from interface:IDeltaLazy clear the delta, on world change
-
getEnvironment
public IEnvironment getEnvironment()
Description copied from interface:IDeltaReturn the associate environment- Specified by:
getEnvironmentin interfaceIDelta- Returns:
- associated environment
-
add
public void add(int lb, int ub, ICause cause)Description copied from interface:IIntervalDeltaAdds a new value interval to the delta- Specified by:
addin interfaceIIntervalDelta- Specified by:
addin interfaceISetDelta- Parameters:
lb- lower bound of removed intervalub- upper bound of removed intervalcause- of the removal
-
getLB
public int getLB(int idx) throws IndexOutOfBoundsExceptionDescription copied from interface:IIntervalDeltaReturn the lower bound of idx^th interval stored in the delta, if any- Specified by:
getLBin 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 IndexOutOfBoundsExceptionDescription copied from interface:IIntervalDeltaReturn the upper bound idx^th interval stored in the delta, if any- Specified by:
getUBin 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:IEnumDeltaReturn the idx^th value stored in the delta, if any- Specified by:
getin interfaceIEnumDelta- Parameters:
idx- rank of the value- Returns:
- idx^th value
-
getCause
public ICause getCause(int idx)
Description copied from interface:IntDeltaReturn the cause of the idx^th cause stored in the delta, if any
-
size
public int size()
Description copied from interface:IntDeltaReturns the number of element
-
-