ilog.rules.rf.model

Interface IlrRFModel

  • All Superinterfaces:
    java.lang.Cloneable, IlrDecorableElement, IlrRFElement


    public interface IlrRFModel
    extends IlrRFElement
    IlrRFModel represents the model of the graph in a rule flow. An IlrRFModel instance contains a list of IlrRFModelElement objects. This list is divided into IlrRFNode and IlrRFTransition objects.

    A rule flow model gathers information on the graph of the rule flow only.

    Model modification, that is, adding an element or modifying an element, is propagated to the registered listeners only when the modification is performed through the model.

    Note: this interface is provided for documentation purposes, do not implement it directly.

    Since:
    JRules 7.0
    • Method Detail

      • clear

        IlrRFModel clear()
        Clears this model instance. This model object is reinitialized as a new IlrRFModel instance.
        Returns:
        This model.
      • getNodeList

        IlrRFList<IlrRFNode> getNodeList()
        Returns the list of nodes contained in this model object. A valid rule flow model contains at least two nodes, the initial node and the final node.
        Returns:
        The list of nodes contained in this model object.
      • getTransitionList

        IlrRFList<IlrRFTransition> getTransitionList()
        Returns all the transitions connecting the nodes of this model. A valid rule flow model must contain at list of transitions connecting the initial activity node with the final activity node.
        Returns:
        The list of transition nodes connecting the first and last activity nodes.
        See Also:
        IlrRFNode
      • getTaskList

        IlrRFList<IlrRFTask> getTaskList()
        Returns all the activity definitions attached to this model.
        Returns:
        The activity definitions attached to this model.
      • addModelListener

        void addModelListener(IlrRFModelListener listener)
        Adds a new listener to this model.
        Parameters:
        listener - The new listener.
      • removeModelListener

        void removeModelListener(IlrRFModelListener listener)
        Removes a listener from this model.
        Parameters:
        listener - The listener to remove.
      • getModelListeners

        java.util.List<IlrRFModelListener> getModelListeners()
        Returns the list of model listeners attached to this object.
        Returns:
        The list of model listeners attached to this model.
      • isAdjusting

        boolean isAdjusting()
        Checks if the ruleflow is performing a batch change. When this object is performing a batch change, ensure that no graphical updates are being performed. When the adjustment is finished, perform a refresh.
        Returns:
        If this object is performing a batch change, true is returned.
      • setAdjusting

        boolean setAdjusting(boolean adjusting)
        Sets if the ruleflow is performing a batch change.
        Parameters:
        adjusting - Set to true to indicate that this object is performing a batch change.
        Returns:
        The previous value of adjusting.
      • isEventFiring

        boolean isEventFiring()
        Checks if this model object fires events when a modification occurs.
        Returns:
        If this model object fires events as soon as a modification occurs, true is returned.
      • setEventFiring

        void setEventFiring(boolean eventFiring)
        Sets if this model object should fire events when a modification occurs.
        Parameters:
        eventFiring - Set to true so this rf model object fires events when a modification occurs.

© Copyright IBM Corp. 1987, 2017