ilog.rules.factory

Class IlrModifyAction

  • All Implemented Interfaces:
    ilog.rules.factory.IlrSourceElement, IlrStatement, java.io.Serializable


    public class IlrModifyAction
    extends IlrAction
    This class represents a modify action 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

      • IlrModifyAction

        public IlrModifyAction(IlrValue object)
        Constructs a modify action using an object. Initially, there are no statements in this action.
        Parameters:
        object - The object to be modified.
      • IlrModifyAction

        public IlrModifyAction(IlrValue object,
                       IlrStatement[] statements)
        Constructs a modify action using an object and initializes the block using the passed statement block.
        Parameters:
        object - The object to be modified.
        statements - The statement block.
    • Method Detail

      • getObject

        public final IlrValue getObject()
        Gets the object modified by this action.
        Returns:
        The object modified by this action.
      • setFlushing

        public final void setFlushing(boolean flag)
        Changes the way the object is modified. The passed parameter is true when a relational modification is requested.
        Parameters:
        flag - The flag which controls the type of modification.
      • isFlushing

        public final boolean isFlushing()
        Checks the type of modification to the object.
        Returns:
        true when the modification is relational, and false when the modification is the default one.
      • addStatement

        public final void addStatement(IlrStatement statement)
        Adds a statement to this action.
        Parameters:
        statement - The statement to be added.
      • removeStatement

        public final void removeStatement(IlrStatement statement)
        Removes a statement from the statement list of this action.
        Parameters:
        statement - The statement to be removed.
      • getStatementCount

        public final int getStatementCount()
        Gets the number of statements in this action.
        Returns:
        The number of statements in this action.
      • getStatements

        public final IlrStatement[] getStatements()
        Gets the statements in this action.
        Returns:
        An array of statements. The array can be of length 0.
      • enumerateStatements

        public final java.util.Enumeration enumerateStatements()
        Returns an enumeration to visit all the statements of this action.
        Returns:
        An enumeration of the statements.
      • exploreStatement

        public java.lang.Object exploreStatement(IlrFactoryExplorer explorer)
        Explores this statement using a factory explorer.
        Parameters:
        explorer - The factory explorer.
        Returns:
        An object, the result of the exploration, or null if the method does not return a value.

© Copyright IBM Corp. 1987, 2017