Class logic.Invoker
All Packages Class Hierarchy This Package Previous Next Index
Class logic.Invoker
Object
|
+----logic.Invoker
- public abstract class Invoker
- extends Object
This class is the interface to the whole If-Then-Else framework.
It is responsible for retrieving the Conditions and Rules
created by user classes and delivering them to the rules
engine (the IfThenElse class) for processing. The result
of this processing shows up in the Updateable instance that
is passed in to the main constructor.
-
actions
-
-
conditions
-
-
rules
-
-
ud
-
-
logic.Invoker()
-
-
logic.Invoker(Updateable)
-
-
execute()
- This method fires off the if-then-else logic.
-
getConditions()
-
-
getRules()
-
-
init()
- This method should be called at "startup" -- some time
before if-then-else logic needs to be performed.
-
loadConditions()
-
-
loadRules()
-
actions
protected java.util.Vector actions
conditions
protected java.util.Vector conditions
rules
protected logic.Rules rules
ud
protected logic.Updateable ud
Invoker
public Invoker()
Invoker
public Invoker(Updateable u) throws PoorPerformanceException
execute
public void execute() throws DataNotFoundException, PoorPerformanceException, IllegalExpressionException, RuleNotFoundException, InconsistentRulesException
- This method fires off the if-then-else logic.
It requires that the init() method has already been invoked.
It should not have to be overridden.
getConditions
public java.util.Vector getConditions()
getRules
public logic.Rules getRules()
init
public void init() throws PoorPerformanceException, RuleNotFoundException, InconsistentRulesException
- This method should be called at "startup" -- some time
before if-then-else logic needs to be performed.
The loadRules() method should always be called here;
if more initialization is required, init() can be overridden.
loadConditions
protected abstract void loadConditions() throws IllegalExpressionException, RuleNotFoundException
loadRules
protected abstract void loadRules() throws InconsistentRulesException, PoorPerformanceException, RuleNotFoundException
All Packages Class Hierarchy This Package Previous Next Index