- java.lang.Object
-
- java.lang.Enum<SetEventType>
-
- org.chocosolver.solver.variables.events.SetEventType
-
- All Implemented Interfaces:
Serializable
,Comparable<SetEventType>
,IEventType
public enum SetEventType extends Enum<SetEventType> implements IEventType
An enum defining the set variable event types:ADD_TO_KER
: value enforcing event,REMOVE_FROM_ENVELOPE
: value removal event,
- Author:
- Charles Prud'homme, Jean-Guillaume Fages
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_TO_KER
REMOVE_FROM_ENVELOPE
VOID
-
Field Summary
-
Fields inherited from interface org.chocosolver.solver.variables.events.IEventType
ALL_EVENTS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
all()
int
getMask()
Return the value of the mask associated with the event.static boolean
isEnvRemoval(int mask)
static boolean
isKerAddition(int mask)
static SetEventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SetEventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VOID
public static final SetEventType VOID
-
ADD_TO_KER
public static final SetEventType ADD_TO_KER
-
REMOVE_FROM_ENVELOPE
public static final SetEventType REMOVE_FROM_ENVELOPE
-
-
Method Detail
-
values
public static SetEventType[] 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 (SetEventType c : SetEventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SetEventType 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
-
getMask
public int getMask()
Description copied from interface:IEventType
Return the value of the mask associated with the event.- Specified by:
getMask
in interfaceIEventType
- Returns:
- the mask of the event.
-
all
public static int all()
-
isKerAddition
public static boolean isKerAddition(int mask)
-
isEnvRemoval
public static boolean isEnvRemoval(int mask)
-
-