|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jeops.engine.RuleSorter | +--jeops.engine.LRURuleSorter
A rule sorter that will fire the least recently used rule.
ConflictSet
Constructor Summary | |
LRURuleSorter()
Class constructor. |
Method Summary | |
void |
flush()
Removes all rules of this sorter. |
void |
insertRule(Rule rule)
Inserts a rule in this sorter. |
Rule |
nextRule()
Returns the next rule to be fired. |
void |
ruleRemoved(java.lang.String ruleName)
Callback method, used to inform this class that a rule was removed from this sorter. |
Methods inherited from class jeops.engine.RuleSorter |
isEmpty,
removeNonFireableRules,
removeRule,
removeRulesWith |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LRURuleSorter()
Method Detail |
public void flush()
public void insertRule(Rule rule)
rule
- the rule to be inserted.public Rule nextRule() throws NoMoreRulesException
public void ruleRemoved(java.lang.String ruleName)
ruleName
- the name of the removed rule.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |