Enum Class ActivationMode

java.lang.Object
java.lang.Enum<ActivationMode>
org.evrete.api.ActivationMode
All Implemented Interfaces:
Serializable, Comparable<ActivationMode>, Constable

public enum ActivationMode extends Enum<ActivationMode>
Enum representing the activation mode for a session.
  • Enum Constant Details

    • CONTINUOUS

      public static final ActivationMode CONTINUOUS
      With this mode, the engine executes all the rules on the agenda and collects all the WMA (Working Memory Action) incurred by rules' actions. Once the engine reaches the end of the agenda, the collected memory actions become a new WMA buffer. With this strategy, neither of the rules on the agenda is aware of the WMAs created by previous rules.
    • DEFAULT

      public static final ActivationMode DEFAULT
      This mode employs an internal versioning mechanism that allows a rule's action block to see changes made by the preceding rules on the agenda. Facts that are marked for deletion or have a different version are excluded from the action block.
  • Method Details

    • values

      public static ActivationMode[] 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 ActivationMode 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