public class SingleFactRulesEngine extends Object implements RulesEngine
TextBox, using a SuggestBox
that uses more that one SuggestOracle, for example. This simple rule
engine could help to delegate to the right SuggestOracle.| Modifier and Type | Class and Description |
|---|---|
static class |
SingleFactRulesEngine.OrderMode
How the result of
getRules(OrderMode mode) will be sorted. |
class |
SingleFactRulesEngine.RuleHandlerImpl
RuleHandler implementation for SingleFactRulesEngine |
| Constructor and Description |
|---|
SingleFactRulesEngine(SingleFactRulesEngine.OrderMode mode) |
| Modifier and Type | Method and Description |
|---|---|
RuleHandler |
addRule(Rule rule) |
void |
clearReport() |
Report |
getReport() |
List<Rule> |
getRules() |
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 |
public SingleFactRulesEngine(SingleFactRulesEngine.OrderMode mode)
public RuleHandler addRule(Rule rule)
addRule in interface RulesEnginepublic void processFact(Object fact)
RulesEngineprocessFact in interface RulesEnginepublic void processFact(Object fact, Report report)
RulesEngineReportprocessFact in interface RulesEnginepublic Report getReport()
getReport in interface RulesEnginepublic void clearReport()
clearReport in interface RulesEngineCopyright © 2012. All Rights Reserved.