All Packages Class Hierarchy This Package Previous Next Index
Class logic.Invoker
java.lang.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
-
-
Invoker()
-
-
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()
-
rules
protected Rules rules
conditions
protected Vector conditions
actions
protected Vector actions
ud
protected Updateable ud
Invoker
public Invoker()
Invoker
public Invoker(Updateable u) throws NestingTooDeepException
execute
public void execute() throws DataNotFoundException, NestingTooDeepException, IllegalExpressionException, RuleNotFoundException
- 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 Vector getConditions()
getRules
public Rules getRules()
init
public void init() throws NestingTooDeepException
- 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
loadRules
protected abstract void loadRules() throws NestingTooDeepException
All Packages Class Hierarchy This Package Previous Next Index