public interface RulesEngine
Rule structure and try to match
them against a fact. If a Rule matches, then all its
RuledCommand are fired. Else, nothing is done and the next
Rule is processed until no rule remains.| Modifier and Type | Method and Description |
|---|---|
RuleHandler |
addRule(Rule rule) |
void |
clearReport() |
Report |
getReport() |
void |
processFact(Object fact)
process a fact trough rules
|
void |
processFact(Object fact,
Report report)
process a fact trough rules and specify a specific
Report |
RuleHandler addRule(Rule rule)
void processFact(Object fact)
fact - void processFact(Object fact, Report report)
Reportfact - report - Report getReport()
void clearReport()
Copyright © 2012. All Rights Reserved.