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
-
NAME
-
-
logic.Algorithm_manyStars()
-
-
addRule(String, Action)
-
This method adds a new boolean-sequence / action pair
to the rules Hashtable.
-
init(int, int, int, boolean)
-
-
lookUp(Vector)
- This method looks up, in ruleTable,
the action that corresponds to the BooleanTuple
passed in.
-
name()
-
NAME
public static final java.lang.String NAME
Algorithm_manyStars
public Algorithm_manyStars()
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
init
public void init(int numConditions,
int numRules,
int maxNumStars,
boolean consisCheck)
- Overrides:
- init in class Algorithm
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
name
public java.lang.String name()
- Overrides:
- name in class Algorithm
All Packages Class Hierarchy This Package Previous Next Index