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.


Variable Index

 o actions
 o conditions
 o rules
 o ud

Constructor Index

 o Invoker()
 o Invoker(Updateable)

Method Index

 o execute()
This method fires off the if-then-else logic.
 o getConditions()
 o getRules()
 o init()
This method should be called at "startup" -- some time before if-then-else logic needs to be performed.
 o loadConditions()
 o loadRules()

Variables

 o rules
 protected Rules rules
 o conditions
 protected Vector conditions
 o actions
 protected Vector actions
 o ud
 protected Updateable ud

Constructors

 o Invoker
 public Invoker()
 o Invoker
 public Invoker(Updateable u) throws NestingTooDeepException

Methods

 o 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.

 o getConditions
 public Vector getConditions()
 o getRules
 public Rules getRules()
 o 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.

 o loadConditions
 protected abstract void loadConditions() throws IllegalExpressionException
 o loadRules
 protected abstract void loadRules() throws NestingTooDeepException

All Packages  Class Hierarchy  This Package  Previous  Next  Index