Enum Class ExcludeMode

java.lang.Object
java.lang.Enum<ExcludeMode>
jadex.bdi.annotation.ExcludeMode
All Implemented Interfaces:
Serializable, Comparable<ExcludeMode>, Constable

public enum ExcludeMode extends Enum<ExcludeMode>
The exclude mode determines when and if a plan is removed from the applicable plans list (APL).
  • Enum Constant Details

    • Never

      public static final ExcludeMode Never
      The plan is never removed.
    • WhenTried

      public static final ExcludeMode WhenTried
      The plan is removed after it has been executed once, regardless of success or failure or abortion.
    • WhenFailed

      public static final ExcludeMode WhenFailed
      The plan is removed after it has been executed once, but only when it exited with an exception.
    • WhenSucceeded

      public static final ExcludeMode WhenSucceeded
      The plan is removed after it has been executed once, but only when it exited without an exception.
  • Field Details

  • Method Details

    • values

      public static ExcludeMode[] 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 ExcludeMode 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
    • getExcludeMode

      public static ExcludeMode getExcludeMode(String name)
      Convert from string to enum.