Enum ConditionMode

java.lang.Object
java.lang.Enum<ConditionMode>
org.bzdev.drama.common.ConditionMode
All Implemented Interfaces:
Serializable, Comparable<ConditionMode>

public enum ConditionMode extends Enum<ConditionMode>
Mode to describe onConditionChange events. This enumeration is used as the second argument to a condition observer's onConditionChange method.
  • Enum Constant Details

    • OBSERVER_ADDED_CONDITION

      public static final ConditionMode OBSERVER_ADDED_CONDITION
      A condition was added to a condition observer
    • DOMAIN_ADDED_CONDITION

      public static final ConditionMode DOMAIN_ADDED_CONDITION
      A condition was added to a domain. Used when domain members are notified.
    • OBSERVER_JOINED_DOMAIN

      public static final ConditionMode OBSERVER_JOINED_DOMAIN
      A condition observer (e.g., an actor) joined a domain.
    • OBSERVER_NOTIFIED

      public static final ConditionMode OBSERVER_NOTIFIED
      A condition changed. I.e., the condition's notifyObservers method was called.
    • DOMAIN_REMOVED_CONDITION

      public static final ConditionMode DOMAIN_REMOVED_CONDITION
      A domain removed a condition.
    • OBSERVER_LEFT_DOMAIN

      public static final ConditionMode OBSERVER_LEFT_DOMAIN
      An observer (e.g., an actor) asked to leave a domain.
    • OBSERVER_REMOVED_CONDITION

      public static final ConditionMode OBSERVER_REMOVED_CONDITION
      An observer removed a condition.
    • CONDITION_DELETED

      public static final ConditionMode CONDITION_DELETED
      A condition was deleted.
  • Method Details

    • values

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

      public static ConditionMode 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 name
      NullPointerException - if the argument is null