Class RetePatternMatcherState

    • Method Detail

      • init

        public void init()
        Initialize the pattern matcher. Called before the agenda is accessed to perform any initialization, if necessary.
        Specified by:
        init in interface IPatternMatcherState
      • getAgenda

        public IAgenda getAgenda()
        Get the agenda. The agenda can only be accessed, after the rule system has been initialized with init().
        Specified by:
        getAgenda in interface IPatternMatcherState
        Returns:
        The agenda.
      • objectModified

        public void objectModified​(java.lang.Object id,
                                   OAVObjectType type,
                                   OAVAttributeType attr,
                                   java.lang.Object oldvalue,
                                   java.lang.Object newvalue)
        Notification when an attribute value of an object has been set.
        Specified by:
        objectModified in interface IOAVStateListener
        Parameters:
        id - The object id.
        type - The object type.
        attr - The attribute type.
        oldvalue - The oldvalue.
        newvalue - The newvalue.
      • objectAdded

        public void objectAdded​(java.lang.Object id,
                                OAVObjectType type,
                                boolean root)
        Notification when an object has been added to the state.
        Specified by:
        objectAdded in interface IOAVStateListener
        Parameters:
        id - The object id.
        type - The object type.
        root - Flag indicating that the object is a root object.
      • objectRemoved

        public void objectRemoved​(java.lang.Object id,
                                  OAVObjectType type)
        Notification when an object has been removed from state.
        Specified by:
        objectRemoved in interface IOAVStateListener
        Parameters:
        id - The object id.
        type - The object type.
      • getReteMemory

        public ReteMemory getReteMemory()
        Get the Rete memory.
      • getReteNode

        public ReteNode getReteNode()
        Get the node.
        Returns:
        The node.