public class RuleSystem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
inited
Flag to check if the rule system was already initialized.
|
protected IPatternMatcherFunctionality |
matcherfunc
The pattern matcher functionality for evaluating rules.
|
protected IPatternMatcherState |
matcherstate
The matcher state.
|
protected IRulebase |
rulebase
The rule base containing all the rules.
|
protected IOAVState |
state
The working memory containing all facts.
|
Constructor and Description |
---|
RuleSystem(IOAVState state,
IRulebase rulebase,
IPatternMatcherFunctionality matcherfunc)
Create a new rule system.
|
RuleSystem(IOAVState state,
IRulebase rulebase,
IPatternMatcherFunctionality matcherfunc,
AbstractAgenda agenda)
Create a new rule system.
|
Modifier and Type | Method and Description |
---|---|
void |
fireAllRules()
Fire all rules until quiescence.
|
IAgenda |
getAgenda()
Get the agenda.
|
IPatternMatcherFunctionality |
getMatcherFunctionality()
Get the matcher functionality.
|
IPatternMatcherState |
getMatcherState()
Get the matcher state.
|
IRulebase |
getRulebase()
Get the rulebase.
|
IOAVState |
getState()
Get the memory.
|
void |
init()
Initialize the rule system.
|
boolean |
isInited()
Get the inited.
|
protected IOAVState state
protected IRulebase rulebase
protected IPatternMatcherFunctionality matcherfunc
protected IPatternMatcherState matcherstate
protected boolean inited
public RuleSystem(IOAVState state, IRulebase rulebase, IPatternMatcherFunctionality matcherfunc)
public RuleSystem(IOAVState state, IRulebase rulebase, IPatternMatcherFunctionality matcherfunc, AbstractAgenda agenda)
public void init()
public boolean isInited()
public IOAVState getState()
public IRulebase getRulebase()
public IAgenda getAgenda()
init()
.public void fireAllRules()
public IPatternMatcherFunctionality getMatcherFunctionality()
public IPatternMatcherState getMatcherState()