|
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.AblePolicyRule
This class holds the business value, preconditions, and actions used in a policy rule. The precondition expression can be an arbitrarily complex boolean expression and the decision section can contain zero or more action clauses.
| Field Summary | |
|---|---|
protected java.util.Vector |
myPolicyDecisions
myPolicyDecisions is a list of AbleConsequentClause objects. |
protected AbleExpression |
myPolicyPreconditions
myPolicyPreconditions is an arbitrarily complex AbleExpression that must evaluate to a boolean value. |
| 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 | |
|---|---|
AblePolicyRule(java.lang.String theLabel,
AbleRd theBusinessValue,
AbleExpression thePolicyPreconditions,
java.util.Vector thePolicyDecisions)
Create a new policy rule with the specified business value, preconditions, and decisions. |
|
| Method Summary | |
|---|---|
java.lang.String |
arlString()
Returns a formal Able Rule Language (ARL) string representation of the rule. |
java.lang.String |
armlString()
Return a formal XML string. |
java.util.Vector |
getPolicyDecisions()
Gets the rule's list of policy decisions. |
AbleExpression |
getPolicyPreconditions()
Gets the rule's policy preconditions. |
java.lang.String |
getTemplateString(java.util.Vector theTemplateVars)
Retrieve a text format string for use by rule templates. |
long |
numberOfPolicyDecisions()
Gets the number of policy decisions in this rule. |
long |
numberOfPolicyPreconditions()
Gets the number of policy preconditions in this rule. |
void |
reset()
Resets 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)
Gets a string that describes the contents of the object, suitable for inclusion in a trace log. |
java.lang.String |
xmlString()
Returns a formal XML string representation of the rule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected AbleExpression myPolicyPreconditions
The expression may be null, in which case the rule must be ignored by any policy engine.
protected java.util.Vector myPolicyDecisions
| Constructor Detail |
public AblePolicyRule(java.lang.String theLabel,
AbleRd theBusinessValue,
AbleExpression thePolicyPreconditions,
java.util.Vector thePolicyDecisions)
theLabel - The unique label, or name, of this rule.
theBusinessValue - The business value (priority) of this rule.
thePolicyPreconditions - An arbitrarily complex AbleExpression that must
evaluate to a boolean value. If the expression
evaluates to true, the rule may possibly fire;
otherwise, the rule will not fire. Whether the rule
actually fires may depend on the business value
(priority), whether the rule is enabled, and
perhaps other conditions examined by a policy engine.
The specified expression may be null, in which case the rule must be ignored by any policy engine.
thePolicyDecisions - A list of AbleConsequentClause objects that define the
decisions, or actions, of this rule. The list may be
empty, but must not be null. The list is
cloned before it is cached.
| Method Detail |
public final AbleExpression getPolicyPreconditions()
public long numberOfPolicyPreconditions()
public final java.util.Vector getPolicyDecisions()
public long numberOfPolicyDecisions()
public void reset()
reset in class AbleRulepublic java.lang.String arlString()
arlString in class AbleRulepublic java.lang.String xmlString()
xmlString in class AbleRulepublic java.lang.String armlString()
AbleRule
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 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 | |||||||||||