ilog.rules.dvs.rbtesting.asserts

Class IlrExpectedResultsCondition

  • java.lang.Object
    • ilog.rules.dvs.rbtesting.asserts.IlrExpectedResultsCondition
  • All Implemented Interfaces:
    ilog.rules.dvs.rbtesting.asserts.Condition, java.io.Serializable


    public class IlrExpectedResultsCondition
    extends java.lang.Object
    implements java.io.Serializable, ilog.rules.dvs.rbtesting.asserts.Condition
    Represents a condition on a ruleset output parameter.
    See Also:
    Serialized Form
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getPathToTheOutputParameter()
      Returns the path to the ruleset output parameter to test.
      IlrRelationalOperator getRelationalOperator()
      Returns the relational operator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IlrExpectedResultsCondition

        public IlrExpectedResultsCondition(java.lang.String thePathToTheOutputParameter,
                                   IlrRelationalOperator theRelationalOperator)
        Creates a new IlrExpectedResultsCondition instance.
        Parameters:
        thePathToTheOutputParameter - The path to the ruleset output parameter to test. A path has the format <name of the output parameter to test>.<output parameter attribute name>. If this path defines its attributes, they can be referenced. For example, The ruleset defines the input parameter client, whose BOM type is Client. The BOM type Client defines two attributes:
        • The String attribute, name.
        • The BOM Address type attribute, address.
        The address attribute has two attributes:
        • The int attribute, number.
        • The String attribute, street.
        To test the attributes created by ruleset execution, use the following paths:
        • The client name: client.name
        • The client's street name: client.address.street
        theRelationalOperator - the relational operator to use for the test.
    • Method Detail

      • getPathToTheOutputParameter

        public java.lang.String getPathToTheOutputParameter()
        Returns the path to the ruleset output parameter to test. A path has the format <name of the output parameter to test>.<output parameter attribute name>. If this path defines its attributes, they can be referenced. For example, The ruleset defines the input parameter client, whose BOM type is Client. The BOM type Client defines two attributes:
        • The String attribute, name.
        • The BOM Address type attribute, address.
        The address attribute has two attributes:
        • The int attribute, number.
        • The String attribute, street.
        To test the attributes created by ruleset execution use the following paths:
        • The client name: client.name
        • The client's street name: client.address.street
        Returns:
        The path to the ruleset output parameter to test.
      • getRelationalOperator

        public IlrRelationalOperator getRelationalOperator()
        Returns the relational operator.
        Specified by:
        getRelationalOperator in interface ilog.rules.dvs.rbtesting.asserts.Condition
        Returns:
        The relational operator.

© Copyright IBM Corp. 1987, 2017