|
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.IlrTaskGotoNodeStatement
public class IlrTaskGotoNodeStatement
This class represents the class of a jump instruction in a ruleflow. It groups three kinds of jumps that can be found 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
,
IlrControlNodeStatement
,
IlrFlowNodeStatement
,
Serialized Form
Field Summary | |
---|---|
static int |
Break
This value is used to give a break behavior to the
jump node, used in a while block. |
static int |
Continue
This value is used to give a continue behavior to the
jump node, used in a while block. |
static int |
Goto
This value is used to give a goto behavior to the
jump node. |
Constructor Summary | |
---|---|
IlrTaskGotoNodeStatement(int kind)
Builds a jump instruction node for a ruleflow. |
|
IlrTaskGotoNodeStatement(int kind,
IlrFlowNodeStatement previousNode)
Builds a jump instruction node for a ruleflow and connects the created node to the passed node. |
Method Summary | |
---|---|
String |
getGotoLabel()
Returns the label of the node on which the goto node
points. |
int |
getKind()
Returns the jump node kind. |
void |
setGotoLabel(String label)
Sets the label of the node to which the ruleflow execution is directed after the execution of the goto node. |
Methods inherited from class ilog.rules.factory.IlrFlowNodeStatement |
---|
exploreStatement, getName, setNextNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int Goto
This value is used to give a goto
behavior to the
jump node.
public static final int Break
This value is used to give a break
behavior to the
jump node, used in a while
block.
public static final int Continue
This value is used to give a continue
behavior to the
jump node, used in a while
block.
Constructor Detail |
---|
public IlrTaskGotoNodeStatement(int kind)
We specify the kind of jump by passing one of the following values:
IlrTaskGotoNodeStatement.Goto
IlrTaskGotoNodeStatement.Break
IlrTaskGotoNodeStatement.Continue
IllegalArgumentException
is thrown.
kind
- The kind of jump node.public IlrTaskGotoNodeStatement(int kind, IlrFlowNodeStatement previousNode)
IlrTaskIfNodeStatement
nor to an
IlrTaskSwitchNodeStatement
; instead use
IlrTaskIfNodeStatement.setTrueNode
,
IlrTaskIfNodeStatement.setFalseNode
,
IlrTaskSwitchNodeStatement.setCaseNode
, or
IlrTaskSwitchNodeStatement.setDefaultNode
.
We specify the kind of jump by passing one of the following values:
IlrTaskGotoNodeStatement.Goto
IlrTaskGotoNodeStatement.Break
IlrTaskGotoNodeStatement.Continue
IllegalArgumentException
is thrown.
kind
- The kind of jump node.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 setGotoLabel(String label)
goto
node.
This method must be used only for a goto
node whose
kind is Goto
, or else an IllegalArgumentException
is thrown.
label
- The label of the node on which the goto
node
points.public String getGotoLabel()
goto
node
points. This is the node that will be executed after the
goto
node.
this
.public int getKind()
IlrTaskGotoNodeStatement.Goto
IlrTaskGotoNodeStatement.Break
IlrTaskGotoNodeStatement.Continue
.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |