|
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.AblePlanningRule
com.ibm.able.rules.AbleHierarchicalPlanningRule
This class defines a hierarchical planning rule (action or operator) which consists of a set of formal parameters, a preCondition expression, a set of effects, and one or more expansion sets.
AblePlanningEngine,
Serialized Form| Field Summary | |
|---|---|
protected java.util.Vector |
myExpansions
myExpansions is a Vector of Vectors of consequent clauses (AbleConsequentClause objects). |
| Fields inherited from class com.ibm.able.rules.AblePlanningRule |
|---|
myBindings, myEffects, myParameters, myPrecondition |
| 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 | |
|---|---|
AbleHierarchicalPlanningRule(java.lang.String theLabel,
AbleRd thePriority,
java.util.Vector theParameters,
AbleExpression thePrecondition,
java.util.Vector theEffects,
java.util.Vector theExpansions,
AbleRuleSet theRuleSet)
Create a new planning rule with the specified priority, preconditions and effects. |
|
| 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 |
getExpansions()
Retrieve the rule's list of possible expansions. |
java.lang.String |
getTemplateString(java.util.Vector theTemplateVars)
Retrieve a text format string for use by rule templates. |
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 com.ibm.able.rules.AblePlanningRule |
|---|
getBindings, getEffects, getParameters, getPrecondition, getRuleBindings, getVariables, isTriggered, removeBindings, reset, setBindings, setBindings, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.util.Vector myExpansions
| Constructor Detail |
public AbleHierarchicalPlanningRule(java.lang.String theLabel,
AbleRd thePriority,
java.util.Vector theParameters,
AbleExpression thePrecondition,
java.util.Vector theEffects,
java.util.Vector theExpansions,
AbleRuleSet theRuleSet)
theLabel - The unique label, or name, of this rule.
thePriority - The priority of this rule.
theParameters - A list of AbleVariable objects that define the formal parameters of this rule.thePrecondition - A boolean AbleExpression that defines the necessary precondition of this rule.
theEffects - A list of AbleConsequentClause objects that define the
consequents or actions of this rule.
* @param theExpansions A Vector of Vectors of AbleConsequentClause objects that define the possible expansions of this rule.
* @param theRuleSet A ruleset that provides the context for this rule.
| Method Detail |
public final java.util.Vector getExpansions()
public java.lang.String arlString()
arlString in class AblePlanningRulepublic java.lang.String xmlString()
xmlString in class AblePlanningRulepublic java.lang.String armlString()
armlString in class AblePlanningRule
public java.lang.String getTemplateString(java.util.Vector theTemplateVars)
throws AbleDataException
getTemplateString in class AblePlanningRuletheTemplateVars - An ordered list of template variables referenced by this rule.
AbleDataExceptionAbleRuleTemplatepublic java.lang.String traceString(int theTraceStringFlavor)
traceString in class AblePlanningRuletheTraceStringFlavor - 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 | |||||||||||