|
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.AbleWhileDoRule
This class defines a while/do "iteration" rule consisting of a boolean test expression and one or more consequent clauses (the body). The conditions are tested before the body is executed. The rule iterates until the test expression evaluates to false.
| Field Summary | |
|---|---|
protected java.util.Vector |
myConsequents
myConsequents is a list of consequent clauses (AbleConsequentClause objects). |
protected AbleExpression |
myTestExpression
myTestExpression is a boolean expression used to control the loop. |
| 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 | |
|---|---|
AbleWhileDoRule(java.lang.String theLabel,
AbleRd thePriority,
AbleExpression theTestExpression,
java.util.Vector theConsequents)
Create a new conditional rule with the specified priority, a Boolean test expression, and consequent clauses. |
|
| 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 |
getDoActions()
Retrieve the rule's list of "do" action (AbleConsequent) clauses. |
int |
getNumberOfDoActions()
Retrieve the number of "do" actions in this rule. |
java.lang.String |
getTemplateString(java.util.Vector theTemplateVars)
Retrieve a text format string for use by rule templates. |
AbleExpression |
getTestExpression()
Retrieve the rule's test expression. |
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 AbleExpression myTestExpression
protected java.util.Vector myConsequents
| Constructor Detail |
public AbleWhileDoRule(java.lang.String theLabel,
AbleRd thePriority,
AbleExpression theTestExpression,
java.util.Vector theConsequents)
theLabel - The unique label, or name, of this rule.
thePriority - The priority of this rule.
theTestExpression - A boolean expression.
theConsequents - A list of AbleConsequentClause objects that define the
consequents of this rule. The list is cloned.
| Method Detail |
public final AbleExpression getTestExpression()
getTestExpression in interface AbleIterationRulepublic int getNumberOfDoActions()
getNumberOfDoActions in interface AbleIterationRulepublic final java.util.Vector getDoActions()
getDoActions in interface AbleIterationRulepublic 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.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 AbleRuleSet.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 | |||||||||||