public interface Rule extends java.lang.Comparable<Rule>
Rules
in which they must have a unique name.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_DESCRIPTION
Default rule description.
|
static java.lang.String |
DEFAULT_NAME
Default rule name.
|
static int |
DEFAULT_PRIORITY
Default rule priority.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Facts facts)
Rule conditions abstraction : this method encapsulates the rule's conditions.
|
void |
execute(Facts facts)
Rule actions abstraction : this method encapsulates the rule's actions.
|
java.lang.String |
getDescription()
Getter for rule description.
|
java.lang.String |
getName()
Getter for rule name.
|
int |
getPriority()
Getter for rule priority.
|
static final java.lang.String DEFAULT_NAME
static final java.lang.String DEFAULT_DESCRIPTION
static final int DEFAULT_PRIORITY
java.lang.String getName()
java.lang.String getDescription()
int getPriority()
boolean evaluate(Facts facts)
void execute(Facts facts) throws java.lang.Exception
java.lang.Exception
- thrown if an exception occurs during actions performingCopyright © 2019. All Rights Reserved.