Enum IWatcher.TriggeringType
- java.lang.Object
-
- java.lang.Enum<IWatcher.TriggeringType>
-
- laas.openrobots.ontology.modules.events.IWatcher.TriggeringType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IWatcher.TriggeringType>
- Enclosing interface:
- IWatcher
public static enum IWatcher.TriggeringType extends java.lang.Enum<IWatcher.TriggeringType>
Constants that defines the way an event is triggered.ON_TRUE
: the event is triggered each time the corresponding watch expression becomes true.ON_TRUE_ONE_SHOT
: the event is triggered the first time the corresponding watch expression becomes true. The watcher is then deleted.ON_FALSE
: the event is triggered each time the corresponding watch expression becomes false.ON_FALSE_ONE_SHOT
: the event is triggered the first time the corresponding watch expression becomes false. The watcher is then deleted.ON_TOGGLE
: the event is triggered each time the corresponding watch expression becomes true or false.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ON_FALSE
ON_FALSE_ONE_SHOT
ON_TOGGLE
ON_TRUE
ON_TRUE_ONE_SHOT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IWatcher.TriggeringType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IWatcher.TriggeringType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON_TRUE
public static final IWatcher.TriggeringType ON_TRUE
-
ON_TRUE_ONE_SHOT
public static final IWatcher.TriggeringType ON_TRUE_ONE_SHOT
-
ON_FALSE
public static final IWatcher.TriggeringType ON_FALSE
-
ON_FALSE_ONE_SHOT
public static final IWatcher.TriggeringType ON_FALSE_ONE_SHOT
-
ON_TOGGLE
public static final IWatcher.TriggeringType ON_TOGGLE
-
-
Method Detail
-
values
public static IWatcher.TriggeringType[] 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 (IWatcher.TriggeringType c : IWatcher.TriggeringType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IWatcher.TriggeringType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-