ilog.rules.factory

Class IlrSimpleCondition

  • All Implemented Interfaces:
    java.io.Serializable


    public class IlrSimpleCondition
    extends IlrClassCondition
    This class represents a simple condition of the rule language.

    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.

    See Also:
    Serialized Form
    • Constructor Detail

      • IlrSimpleCondition

        public IlrSimpleCondition(IlrClass clazz)
        Constructs a simple condition which operates on the instances of the class passed as the argument.
        Parameters:
        clazz - The class of the simple condition.
      • IlrSimpleCondition

        public IlrSimpleCondition(IlrReflect reflect,
                          java.lang.Class clazz)
        Constructs a simple condition which operates on the instances of the class passed as the argument.
        Parameters:
        reflect - A reflect.
        clazz - The class of the simple condition.
      • IlrSimpleCondition

        public IlrSimpleCondition(IlrReflect reflect,
                          java.lang.String className)
        Constructs a simple condition which operates on the instances of the class whose name is passed as the argument.
        Parameters:
        reflect - A reflect.
        className - The fully-qualified name of the class of the simple condition.
    • Method Detail

      • setEventCondition

        public final void setEventCondition(boolean eventCondition)
        Deprecated. As of IBM Decision Server 7.5, event processing is deprecated.
        Sets whether the condition is an event condition or not.
        Parameters:
        eventCondition - is true to mark the condition as an event condition, and false otherwise.
      • bindObject

        public IlrVariable bindObject(java.lang.String name)
        Creates a variable to represent the binding of the object matched by this condition.
        Parameters:
        name - The name of the variable binding.
        Returns:
        The variable which represents the binding of the object matched by this condition.
      • getObjectBinding

        public final IlrVariable getObjectBinding()
        Gets the object binding of this condition.
        Returns:
        The variable which represents the binding of the object matched by this condition, or null if the object is not bound.
      • exploreCondition

        public java.lang.Object exploreCondition(IlrFactoryExplorer explorer)
        Explores this condition using a factory explorer and returns an object as a result.
        Specified by:
        exploreCondition in class IlrCondition
        Parameters:
        explorer - The factory explorer.
        Returns:
        An object which represents the result of the exploration, or null if the method does not return a value.

© Copyright IBM Corp. 1987, 2017