|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.factory.IlrBaseStatement ilog.rules.factory.IlrFlowNodeStatement ilog.rules.factory.IlrControlNodeStatement ilog.rules.factory.IlrSplitNodeStatement ilog.rules.factory.IlrTaskIfNodeStatement
public final class IlrTaskIfNodeStatement
Represents the class of an if
node in a ruleflow.
Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of IBM Decision Server.
IlrTaskFactory
,
IlrSplitNodeStatement
,
IlrTaskJoinNodeStatement
,
IlrControlNodeStatement
,
IlrFlowNodeStatement
,
Serialized Form
Constructor Summary | |
---|---|
IlrTaskIfNodeStatement(String name)
Builds an if node for a ruleflow. |
|
IlrTaskIfNodeStatement(String name,
IlrFlowNodeStatement previousNode)
Builds an if node for a rule flow and connects the created
node to the passed node. |
Method Summary | |
---|---|
IlrFlowNodeStatement |
getFalseNode()
Returns the node connected to the if node that will be
executed if the test returns false . |
IlrTest |
getTest()
Returns the test linked to the if node. |
IlrFlowNodeStatement |
getTrueNode()
Returns the node connected to the if node that will be
executed if the test returns true . |
void |
setFalseNode(IlrFlowNodeStatement node)
Sets the node that will be executed in case the test returns false . |
void |
setNextNode(IlrFlowNodeStatement node)
This method should never be used; it throws an UnsupportedOperationException exception. |
void |
setTest(IlrTest test)
Sets the test linked to the if node. |
void |
setTrueNode(IlrFlowNodeStatement node)
Sets the node that will be executed in case the test returns true . |
Methods inherited from class ilog.rules.factory.IlrSplitNodeStatement |
---|
close |
Methods inherited from class ilog.rules.factory.IlrFlowNodeStatement |
---|
exploreStatement, getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrTaskIfNodeStatement(String name)
if
node for a ruleflow.
It is useful to set a label if the node is the target of a goto
statement.
name
- The label The label used to target the node in a goto
statement.public IlrTaskIfNodeStatement(String name, IlrFlowNodeStatement previousNode)
if
node for a rule flow and connects the created
node to the passed node. This constructor should not be called to connect
the new node to an IlrTaskIfNodeStatement
nor to an
IlrTaskSwitchNodeStatement
. Instead, you should use
IlrTaskIfNodeStatement.setTrueNode
,
IlrTaskIfNodeStatement.setFalseNode
,
IlrTaskSwitchNodeStatement.setCaseNode
,
IlrTaskSwitchNodeStatement.setDefaultNode
.
It is useful to set a label if the node is the target of a goto
statement.
name
- The label used to target the node in a goto statement.previousNode
- The node that is before the new node in the
ruleflow. The two nodes are connected by calling the method
IlrFlowNodeStatement.setNextNode
.Method Detail |
---|
public void setTest(IlrTest test)
if
node.
test
- The test executed by the node.public IlrTest getTest()
if
node.
public void setNextNode(IlrFlowNodeStatement node)
if
use
setTrueNode
or setFalseNode
instead.
setTrueNode(ilog.rules.factory.IlrFlowNodeStatement)
,
setFalseNode(ilog.rules.factory.IlrFlowNodeStatement)
public void setTrueNode(IlrFlowNodeStatement node)
true
.
node
- The node connected to the if
node that will
be executed in case the if
node's test returns
true
.setFalseNode(ilog.rules.factory.IlrFlowNodeStatement)
public IlrFlowNodeStatement getTrueNode()
if
node that will be
executed if the test returns true
.
if
node that will be
executed if the test returns true
.public void setFalseNode(IlrFlowNodeStatement node)
false
.
node
- The node connected to the if
node that will be
executed in case the if
node's test returns
false
.setTrueNode(ilog.rules.factory.IlrFlowNodeStatement)
public IlrFlowNodeStatement getFalseNode()
if
node that will be
executed if the test returns false
.
if
node that will be
executed if the test returns false
.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |