Defines a method as a rule within a rule-based system. The arguments of the method are treated as declared facts,
and the body of the method constitutes the action of the rule.
The conditions of the rule are established through additional method annotations.
-
Optional Element Summary
Optional Elements -
Field Summary
Fields
-
Field Details
-
DEFAULT_SALIENCE
static final int DEFAULT_SALIENCE- See Also:
-
-
Element Details
-
value
String valueOptional identifier or name for the rule. Useful for rule management and referencing.- Returns:
- the declared name of the rule
- Default:
- ""
-
salience
int salienceDetermines the priority of the rule relative to others.- Returns:
- the salience of the rule
- Default:
- -2147483648
-