ilog.rules.factory

Class IlrTaskIfNodeStatement

    • Constructor Detail

      • IlrTaskIfNodeStatement

        public IlrTaskIfNodeStatement(java.lang.String name)
        Builds an if node for a ruleflow. It is useful to set a label if the node is the target of a goto statement.
        Parameters:
        name - The label The label used to target the node in a goto statement.
      • IlrTaskIfNodeStatement

        public IlrTaskIfNodeStatement(java.lang.String name,
                              IlrFlowNodeStatement previousNode)
        Builds an 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.
        Parameters:
        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

      • setTest

        public void setTest(IlrTest test)
        Sets the test linked to the if node.
        Parameters:
        test - The test executed by the node.
      • getTest

        public IlrTest getTest()
        Returns the test linked to the if node.
        Returns:
        the test executed by the node.
      • getTrueNode

        public IlrFlowNodeStatement getTrueNode()
        Returns the node connected to the if node that will be executed if the test returns true.
        Returns:
        the node connected to the if node that will be executed if the test returns true.
      • getFalseNode

        public IlrFlowNodeStatement getFalseNode()
        Returns the node connected to the if node that will be executed if the test returns false.
        Returns:
        the node connected to the if node that will be executed if the test returns false.

© Copyright IBM Corp. 1987, 2017