|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclarion.system.AbstractExplicitModule
clarion.system.AbstractRule
clarion.system.RefineableRule
public class RefineableRule
This class implements a refineable rule within CLARION. It extends the AbstractRule class and implements the InterfaceDeleteable interface.
Usage:
A refineable rule is a rule within the ACS that can be specialized, generalize, and deleted automatically within CLARION. This is the base class for any rule type that can be refined. It is also the class that is generated when RER rules are extracted from the bottom level. The primary difference between a refineable rule and other rules is that refineable rules keep track or hidden minor rule variations that are the central components for enabling generalization and specialization.
Known Subclasses:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class clarion.system.AbstractRule |
---|
AbstractRule.SelectionTypes, AbstractRule.UtilityOptions |
Field Summary | |
---|---|
private int |
hash
The hash for this object. |
protected AbstractRule |
MatchAll
The Match all rule related to the action chunk of the rule. |
protected java.util.HashMap<java.lang.Integer,AbstractRule> |
Variations
The rule variations (hidden rules that contain + or - one activated dimension-value pair in the condition of the rule). |
Fields inherited from class clarion.system.AbstractExplicitModule |
---|
ACTUATION_TIME, C, D, DECISION_TIME, GLOBAL_ACTUATION_TIME, GLOBAL_C, GLOBAL_D, GLOBAL_DECISION_TIME, GLOBAL_INITIAL_BLA, GLOBAL_PERCEPTION_TIME, GLOBAL_WEIGHT, INITIAL_BLA, PERCEPTION_TIME, WEIGHT |
Constructor Summary | |
---|---|
RefineableRule(GeneralizedConditionChunk Cond,
AbstractAction Act)
Initializes a refineable rule with the condition and action specified. |
Method Summary | |
---|---|
boolean |
checkDeletionByDensity(long TimeStamp)
Checks to see if deletion should occur based on the density parameter. |
RefineableRule |
clone()
Clones the rule. |
AbstractRule |
getMatchAll()
Gets the match all rule related to this rule. |
AbstractRule |
getMaxVariationMinusOne(RuleRefiner r)
Gets the rule variation (containing 1 less activated dimension-value pair) with the maximum information gain compared to this rule. |
AbstractRule |
getMaxVariationPlusOne(RuleRefiner r)
Gets the rule variation (containing 1 additional activated dimension-value pair) with the maximum information gain compared to this rule. |
int |
getNumVariations()
Gets the number of rule variations this rule has. |
java.util.Map<java.lang.Integer,AbstractRule> |
getVariations()
Gets a collection of the variations of this rule. |
int |
hashCode()
|
void |
initVariations()
Initializes the rule variations collection. |
void |
resetVariations()
Resets the rule variations collection. |
void |
setMatchAll(AbstractRule MA)
Sets the match all rule related to this rule. |
Methods inherited from class clarion.system.AbstractRule |
---|
checkMatchCriterion, checkMatchCriterion, covers, covers, equals, equals, getAction, getChildren, getCondition, getFeedback, getNM, getNumChildren, getPM, getSupport, getUtility, getUtility, incrementNM, incrementPM, initChildren, resetChildren, resetMatchStatistics, setCurrentInput, setFeedback, setNM, setPM, toString, turnPartialMatchON, updateMatchStatistics |
Methods inherited from class clarion.system.AbstractExplicitModule |
---|
addTimeStamp, getBLA, getResponseTime |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface clarion.system.InterfaceTracksTime |
---|
addTimeStamp, getBLA |
Field Detail |
---|
private int hash
protected AbstractRule MatchAll
protected java.util.HashMap<java.lang.Integer,AbstractRule> Variations
Constructor Detail |
---|
public RefineableRule(GeneralizedConditionChunk Cond, AbstractAction Act)
Cond
- The condition for the rule.Act
- The action for the rule.Method Detail |
---|
public int getNumVariations()
public java.util.Map<java.lang.Integer,AbstractRule> getVariations()
public void initVariations()
public void resetVariations()
public AbstractRule getMaxVariationPlusOne(RuleRefiner r)
r
- The rule refine to use for calculating the information gain.
public AbstractRule getMaxVariationMinusOne(RuleRefiner r)
r
- The rule refine to use for calculating the information gain.
public AbstractRule getMatchAll()
public void setMatchAll(AbstractRule MA)
MA
- The match all rule.public boolean checkDeletionByDensity(long TimeStamp)
checkDeletionByDensity
in interface InterfaceDeleteable
TimeStamp
- The current time stamp.
public int hashCode()
hashCode
in class java.lang.Object
public RefineableRule clone()
clone
in class AbstractRule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |