|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCOM.TIBCO.hawk.config.rbengine.rulebase.RulebaseElement
COM.TIBCO.hawk.config.rbengine.rulebase.Test
public class Test
Test objects define the tests which are performed on the rule's data and what actions to take. A Test object consists primarilly of a test expresssion and a list of actions.
| Field Summary | |
|---|---|
static java.lang.String |
CNAME
|
| Constructor Summary | |
|---|---|
Test(ConsequenceAction[] actions,
Operator Op)
Constructs a Test object |
|
Test(COM.TIBCO.hawk.util.xml.XmlElementNode xmlNode)
Constructs a Test |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a copy of this object |
java.lang.Object[] |
convertEventLogMABasedOperator(java.lang.Object[] items)
|
boolean |
equals(java.lang.Object obj)
Compares two Tests for equality. |
ClearAction[] |
getClearActions()
Returns the clear actions. |
ClearConditionPolicy |
getClearConditionPolicy()
Returns the clear condition policy |
ConsequenceAction[] |
getConsequenceActions()
Returns the consequence actions. |
java.lang.String |
getConvertedString(java.lang.String str)
|
Operator |
getTestExpressionOperator()
Returns the test expression operator. |
TrueConditionPolicy |
getTrueConditionPolicy()
Returns the true condition policy |
boolean |
isConverted()
|
COM.TIBCO.hawk.talon.MethodInvocation |
performEventLogMAConversion(COM.TIBCO.hawk.talon.MethodInvocation mi)
|
void |
setClearActions(ClearAction[] clearActions)
Sets the clear actions. |
void |
setClearConditionPolicy(ClearConditionPolicy policy)
Sets the clear condition policy The only supported ClearConditionPolicy types are ClearOnFirstFalse, ClearTimer, and ClearTest |
void |
setConsequenceActions(ConsequenceAction[] actions)
Sets the consequence actions. |
void |
setTestExpressionOperator(Operator op)
Sets the test expression operator. |
void |
setTrueConditionPolicy(TrueConditionPolicy policy)
Sets the true condition policy. |
java.lang.String |
toString()
Returns string representation of this test. |
| Methods inherited from class COM.TIBCO.hawk.config.rbengine.rulebase.RulebaseElement |
|---|
getName, getSchedule, setName, setSchedule |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String CNAME
| Constructor Detail |
|---|
public Test(ConsequenceAction[] actions,
Operator Op)
throws java.lang.IllegalArgumentException
actions - the test's consequence actionsop - the Operator object forming the test expression, must
be an Operator object that returns a Boolean value.
java.lang.IllegalArgumentException - if either argument is null
java.lang.IllegalArgumentException - if the test expression operator
doesn't return a Boolean value;
public Test(COM.TIBCO.hawk.util.xml.XmlElementNode xmlNode)
throws RulebaseException
xmlNode - XML node that contain the DataSource
RulebaseException| Method Detail |
|---|
public Operator getTestExpressionOperator()
public boolean isConverted()
public void setTestExpressionOperator(Operator op)
throws java.lang.IllegalArgumentException
op - the Operator object forming the test expression, must
be an Operator object that returns a Boolean value.
java.lang.IllegalArgumentException - if op is null
java.lang.IllegalArgumentException - if the test expression operator
doesn't return a Boolean value;public ConsequenceAction[] getConsequenceActions()
public ClearAction[] getClearActions()
public TrueConditionPolicy getTrueConditionPolicy()
public ClearConditionPolicy getClearConditionPolicy()
public void setClearActions(ClearAction[] clearActions)
actions - the array of conequence actions, all actions must
have unique names
java.lang.IllegalArgumentException - if the actions do not have unique names
public void setConsequenceActions(ConsequenceAction[] actions)
throws java.lang.IllegalArgumentException
actions - the array of conequence actions, all actions must
have unique names
java.lang.IllegalArgumentException - if actions is null
java.lang.IllegalArgumentException - if the actions do not have unique names
public void setTrueConditionPolicy(TrueConditionPolicy policy)
throws java.lang.IllegalArgumentException
policy - the true condition policy
java.lang.IllegalArgumentException - if policy is null
java.lang.IllegalArgumentException - if policy is not supported.
public void setClearConditionPolicy(ClearConditionPolicy policy)
throws java.lang.IllegalArgumentException
policy - the clear condition policy
java.lang.IllegalArgumentException - if policy is null
java.lang.IllegalArgumentException - if policy is not supported.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class RulebaseElementpublic java.lang.Object clone()
clone in class RulebaseElementpublic COM.TIBCO.hawk.talon.MethodInvocation performEventLogMAConversion(COM.TIBCO.hawk.talon.MethodInvocation mi)
public java.lang.String getConvertedString(java.lang.String str)
public java.lang.Object[] convertEventLogMABasedOperator(java.lang.Object[] items)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||