public interface Rule extends Comparable<Rule>
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DESCRIPTION
Default rule description.
|
static 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.
|
String |
getDescription()
Getter for rule description.
|
String |
getName()
Getter for rule name.
|
int |
getPriority()
Getter for rule priority.
|
compareTostatic final String DEFAULT_NAME
static final String DEFAULT_DESCRIPTION
static final int DEFAULT_PRIORITY
String getName()
String getDescription()
int getPriority()
boolean evaluate(Facts facts)
Copyright © 2017. All Rights Reserved.