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

Class logic.Algorithm_manyStars

Object
   |
   +----Algorithm
           |
           +----logic.Algorithm_manyStars

public class Algorithm_manyStars
extends Algorithm

Variable Index

 o NAME

Constructor Index

 o logic.Algorithm_manyStars()

Method Index

 o addRule(String, Action)
This method adds a new boolean-sequence / action pair to the rules Hashtable.
 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()

Variables

 o NAME
public static final java.lang.String NAME

Constructors

 o Algorithm_manyStars
public Algorithm_manyStars()

Methods

 o addRule
public void addRule(String boolStr,
                    Action action) throws InconsistentRulesException, PoorPerformanceException, RuleNotFoundException
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 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index