Class logic.Algorithm_fewStars
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class logic.Algorithm_fewStars

Object
   |
   +----Algorithm
           |
           +----logic.Algorithm_fewStars

public class Algorithm_fewStars
extends Algorithm

Variable Index

 o NAME

Constructor Index

 o logic.Algorithm_fewStars()

Method Index

 o addRule(String, Action)
This method adds a new boolean-sequence / action pair to the rules Hashtable.
 o getRuleTable()
 o init(int, int, int, boolean)
 o lookUp(Vector)
This method looks up, in ruleTable, the action that corresponds to the BooleanTuple passed in.
 o name()
 o setRuleTable(Action[])

Variables

 o NAME
public static final java.lang.String NAME

Constructors

 o Algorithm_fewStars
public Algorithm_fewStars()

Methods

 o addRule
public void addRule(String boolStr,
                    Action action) throws PoorPerformanceException, InconsistentRulesException
This method adds a new boolean-sequence / action pair to the rules Hashtable. It first converts the String boolStr, which is a string of T's and F's, to a BooleanTuple, then it loads this BooleanTuple as a key in ruleTable, matched with the action argument passed in.

Overrides:
addRule in class Algorithm
 o getRuleTable
public logic.Action[] getRuleTable()
 o init
public void init(int numConditions,
                 int numRules,
                 int maxNumStars,
                 boolean consisCheck)
Overrides:
init in class Algorithm
 o lookUp
public logic.Action lookUp(Vector results) throws RuleNotFoundException, PoorPerformanceException, InconsistentRulesException, RuleNotFoundException
This method looks up, in ruleTable, the action that corresponds to the BooleanTuple passed in.

Overrides:
lookUp in class Algorithm
 o name
public java.lang.String name()
Overrides:
name in class Algorithm
 o setRuleTable
public void setRuleTable(Action[] rt)

All Packages  Class Hierarchy  This Package  Previous  Next  Index