|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.rules.AbleRule
com.ibm.able.rules.AbleTreeRule
This class represents a decision tree or table (represented as a tree) rule, containing a DecisionTree object. DecisionTree rules are used by the DecisionTree engine.
| Field Summary | |
|---|---|
protected java.util.Vector |
myActionList
myActionList is a list of AbleConsequentClause objects generated from the action nodes of the decision tree. |
protected AbleTree |
myDecisionTree
myAntecedents is a list of AbleAntecedentClause objects. |
protected java.util.Vector |
myExpressionList
myExpressionList is a list of AbleExpression objects generated from the condition nodes decision tree. |
protected java.util.Vector |
myRuleList
|
| Fields inherited from class com.ibm.able.rules.AbleRule |
|---|
myBooleanTruth, myBreakpoint, myComment, myEnabled, myFinalFlag, myFiredCount, myFiredFlag, myId, myLabel, myLocation, myPreConditions, myPriority, myPrompt, myProperties, myRdRefs, myRuleBlock, myRuleSet, myTemplateFlag, myTemplateName, myTemplateValues, myWrRefs, PriorityDefault, RuleIdInitial |
| Constructor Summary | |
|---|---|
AbleTreeRule(java.lang.String theLabel,
AbleRd thePriority,
AbleTree theDecisionTree,
AbleRuleSet theRuleSet,
AbleRuleBlock theRuleBlock)
Create a new decision tree rule with the specified priority, and tree structure. |
|
| Method Summary | |
|---|---|
java.lang.String |
arlString()
Return a formal Able Rule Language (ARL) String. |
java.lang.String |
armlString()
Return a formal XML string. |
java.util.Vector |
convertToAbleRules()
|
AbleExpression |
createAbleExpression(java.util.Vector theExpressionList)
Take an array of Expressions and construct a single conjunction AbleExpression |
boolean |
eval(AbleTreeNode theRootNode)
Evaluate the decision tree structure directly via depth-first search of the tree |
AbleTree |
getDecisionTree()
Retrieve the rule's decision tree. |
java.util.Vector |
getExpressionList()
Retrieve the rule's list of expressions. |
java.util.Vector |
getRuleList()
Return the set of AbleConditionalRules that represents this decision tree or table. |
java.lang.String |
getTemplateString(java.util.Vector theTemplateVars)
Retrieve a text format string for use by rule templates. |
java.util.Vector |
getTemplateVars(AbleRuleSet theRuleSet)
Return a list of template vars referenced by this rule. |
void |
reset()
Reset the rule to its unfired state. |
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
java.lang.String |
traceString(int theTraceStringFlavor)
Retrieve a string describing (the contents of) the object. |
java.lang.String |
xmlString()
Return a formal XML string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected AbleTree myDecisionTree
protected java.util.Vector myRuleList
protected java.util.Vector myExpressionList
protected java.util.Vector myActionList
| Constructor Detail |
public AbleTreeRule(java.lang.String theLabel,
AbleRd thePriority,
AbleTree theDecisionTree,
AbleRuleSet theRuleSet,
AbleRuleBlock theRuleBlock)
theLabel - The unique label, or name, of this rule.
thePriority - The priority of this rule.
theDecisionTree - A decision tree or table represented as a tree structure.
theRuleSet - The ruleset that defines the global context for this rule.
theRuleBlock - The ruleblock that defines the local context for this rule.
| Method Detail |
public final AbleTree getDecisionTree()
public final java.util.Vector getExpressionList()
public final java.util.Vector getRuleList()
public void reset()
reset in class AbleRulepublic java.util.Vector convertToAbleRules()
public AbleExpression createAbleExpression(java.util.Vector theExpressionList)
theExpressionList - A vector of AbleExpressions
public boolean eval(AbleTreeNode theRootNode)
throws AbleDataException
AbleDataExceptionpublic java.lang.String arlString()
arlString in class AbleRulepublic java.lang.String xmlString()
xmlString in class AbleRulepublic java.lang.String armlString()
armlString in class AbleRule
public java.util.Vector getTemplateVars(AbleRuleSet theRuleSet)
throws AbleDataException
getTemplateVars in class AbleRuleAbleDataException
public java.lang.String getTemplateString(java.util.Vector theTemplateVars)
throws AbleDataException
getTemplateString in class AbleRuletheTemplateVars - An ordered list of template variables referenced by this rule.
AbleDataExceptionAbleRuleTemplatepublic java.lang.String toString()
toString in class AbleRulepublic java.lang.String traceString(int theTraceStringFlavor)
traceString in class AbleRuletheTraceStringFlavor - An Able.TraceStringFlavor value.
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||