Enum Class IWatcher.TriggeringType

java.lang.Object
java.lang.Enum<IWatcher.TriggeringType>
laas.openrobots.ontology.modules.events.IWatcher.TriggeringType
All Implemented Interfaces:
Serializable, Comparable<IWatcher.TriggeringType>, Constable
Enclosing interface:
IWatcher

public static enum IWatcher.TriggeringType extends 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.

See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static IWatcher.TriggeringType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IWatcher.TriggeringType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null