|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.rules.AbleRule | +--com.ibm.able.rules.AbleDoWhileRule
This class represents a do/while "iteration" rule consisting of a booean test expression and one or more consequent clauses (the body). The test expression is evaluated after the body is executed. The rule iterates until the boolean test expression evalutes 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, myFiredCount, myFiredFlag, myId, myLabel, myLocation, myPreConditions, myPriority, myPrompt, myRdRefs, myRuleSet, myTemplateFlag, myTemplateName, myTemplateValues, myWrRefs, PriorityDefault, RuleIdInitial |
Constructor Summary | |
---|---|
AbleDoWhileRule(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.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 AbleDoWhileRule(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 AbleIterationRule
public int getNumberOfDoActions()
getNumberOfDoActions
in interface AbleIterationRule
public final java.util.Vector getDoActions()
getDoActions
in interface AbleIterationRule
public java.lang.String arlString()
arlString
in class AbleRule
public java.lang.String xmlString()
xmlString
in class AbleRule
public java.lang.String getTemplateString(java.util.Vector theTemplateVars) throws AbleDataException
getTemplateString
in class AbleRule
theTemplateVars
- An ordered list of template variables referenced by this rule.AbleRuleTemplate
public java.lang.String toString()
toString
in class AbleRule
public java.lang.String traceString(int theTraceStringFlavor)
traceString
in class AbleRule
theFlavor
- An Able.TraceStringFlavor value.
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |