|
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.IlrTaskSwitchNodeStatement
public final class IlrTaskSwitchNodeStatement
Represents the class of a switch
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 | |
---|---|
IlrTaskSwitchNodeStatement(String name)
Builds an switch node for a ruleflow. |
|
IlrTaskSwitchNodeStatement(String name,
IlrFlowNodeStatement previousNode)
Builds a switch node for a rule flow and connects the
created node to the passed node. |
Method Summary | |
---|---|
IlrValue |
getValue()
Returns the value that will be tested by the switch node. |
void |
setCaseNode(IlrConstantValue value,
IlrFlowNodeStatement node)
Sets the node that will be executed if the evaluation of the value linked to the switch matches the passed value. |
void |
setDefaultNode(IlrFlowNodeStatement node)
Sets the node that will be executed if no case block
matches the switch value. |
void |
setNextNode(IlrFlowNodeStatement node)
This method should never be used; it throws an UnsupportedOperationException exception. |
void |
setValue(IlrValue value)
Sets the value that will be tested by the switch node. |
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 IlrTaskSwitchNodeStatement(String name)
switch
node for a ruleflow.
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.public IlrTaskSwitchNodeStatement(String name, IlrFlowNodeStatement previousNode)
switch
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 setValue(IlrValue value)
switch
node.
value
- The value tested by the node.public IlrValue getValue()
switch
node.
public void setNextNode(IlrFlowNodeStatement node)
if
use setCaseNode
or
setDefaultNode
instead.
setCaseNode(ilog.rules.factory.IlrConstantValue, ilog.rules.factory.IlrFlowNodeStatement)
,
setDefaultNode(ilog.rules.factory.IlrFlowNodeStatement)
public void setCaseNode(IlrConstantValue value, IlrFlowNodeStatement node)
switch
matches the passed value.
Only one case
block is executed.
value
- The value for which the case block is said to match
the switch
value.node
- The node connected to the switch
node
that will be executed if this case
is matched.setDefaultNode(ilog.rules.factory.IlrFlowNodeStatement)
public void setDefaultNode(IlrFlowNodeStatement node)
case
block
matches the switch
value.
node
- The node connected to the switch
node
that will be executed if no case
is matched.setCaseNode(ilog.rules.factory.IlrConstantValue, ilog.rules.factory.IlrFlowNodeStatement)
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |