- All Implemented Interfaces:
Serializable,Comparable<ActivationMode>,Constable
Enum representing the activation mode for a session.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWith this mode, the engine executes all the rules on the agenda and collects all the WMA (Working Memory Action) incurred by rules' actions.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic ActivationModeReturns the enum constant of this class with the specified name.static ActivationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException- if the argument is null
-