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.


Variable Index

 o actions
 o conditions
 o rules
 o ud

Constructor Index

 o logic.Invoker()
 o logic.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 actions
protected java.util.Vector actions
 o conditions
protected java.util.Vector conditions
 o rules
protected logic.Rules rules
 o ud
protected logic.Updateable ud

Constructors

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

Methods

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

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

 o loadConditions
protected abstract void loadConditions() throws IllegalExpressionException, RuleNotFoundException
 o loadRules
protected abstract void loadRules() throws InconsistentRulesException, PoorPerformanceException, RuleNotFoundException

All Packages  Class Hierarchy  This Package  Previous  Next  Index