public class Test extends RulebaseElement
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CNAME |
Constructor and Description |
---|
Test(ConsequenceAction[] actions,
Operator Op)
Constructs a Test object
|
Test(COM.TIBCO.hawk.util.xml.XmlElementNode xmlNode)
Constructs a Test
|
Modifier and Type | Method and Description |
---|---|
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.
|
getName, getSchedule, setName, setSchedule
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 nulljava.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 DataSourceRulebaseException
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 nulljava.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 namesjava.lang.IllegalArgumentException
- if the actions do not have unique namespublic void setConsequenceActions(ConsequenceAction[] actions) throws java.lang.IllegalArgumentException
actions
- the array of conequence actions, all actions must
have unique namesjava.lang.IllegalArgumentException
- if actions is nulljava.lang.IllegalArgumentException
- if the actions do not have unique namespublic void setTrueConditionPolicy(TrueConditionPolicy policy) throws java.lang.IllegalArgumentException
policy
- the true condition policyjava.lang.IllegalArgumentException
- if policy is nulljava.lang.IllegalArgumentException
- if policy is not supported.public void setClearConditionPolicy(ClearConditionPolicy policy) throws java.lang.IllegalArgumentException
policy
- the clear condition policyjava.lang.IllegalArgumentException
- if policy is nulljava.lang.IllegalArgumentException
- if policy is not supported.public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class RulebaseElement
public java.lang.Object clone()
clone
in class RulebaseElement
public 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)
Copyright © 2000-2019 TIBCO Inc. All Rights Reserved.