Class AgendaItemImpl

    • Constructor Detail

      • AgendaItemImpl

        public AgendaItemImpl()
    • Method Detail

      • getRule

        public RuleImpl getRule()
        Retrieve the rule.
        Specified by:
        getRule in interface Activation
        Specified by:
        getRule in interface org.kie.api.runtime.rule.Match
        Returns:
        The rule.
      • getTuple

        public Tuple getTuple()
        Retrieve the tuple.
        Specified by:
        getTuple in interface Activation
        Returns:
        The tuple.
      • setSalience

        public void setSalience​(int salience)
        Specified by:
        setSalience in interface AgendaItem
      • getActivationNumber

        public long getActivationNumber()
        Description copied from interface: Activation
        Each PropgationContext is assigned an id from a counter for the WorkingMemory action it represents. All Activations return this id as the ActivationNumber, thus all Activations created from the same PropgationContext will return the same long for this method.
        Specified by:
        getActivationNumber in interface Activation
        Returns:
        The activation number
      • setQueued

        public void setQueued​(boolean queued)
        Specified by:
        setQueued in interface Activation
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Return the hashCode of the TupleKey as the hashCode of the AgendaItem
        Overrides:
        hashCode in class java.lang.Object
        Returns:
      • remove

        public void remove()
        Description copied from interface: Activation
        Cancel the Activation by removing it from the Agenda.
        Specified by:
        remove in interface Activation
      • getFactHandles

        public java.util.List<org.kie.api.runtime.rule.FactHandle> getFactHandles()
        Specified by:
        getFactHandles in interface AgendaItem
        Specified by:
        getFactHandles in interface org.kie.api.runtime.rule.Match
      • getObjects

        public java.util.List<java.lang.Object> getObjects()
        Specified by:
        getObjects in interface org.kie.api.runtime.rule.Match
      • getObjectsDeep

        public java.util.List<java.lang.Object> getObjectsDeep()
        Specified by:
        getObjectsDeep in interface Activation
      • getDeclarationValue

        public java.lang.Object getDeclarationValue​(java.lang.String variableName)
        Specified by:
        getDeclarationValue in interface org.kie.api.runtime.rule.Match
      • getDeclarationIds

        public java.util.List<java.lang.String> getDeclarationIds()
        Specified by:
        getDeclarationIds in interface org.kie.api.runtime.rule.Match
      • setMatched

        public void setMatched​(boolean matched)
        Specified by:
        setMatched in interface Activation
      • setActive

        public void setActive​(boolean active)
        Specified by:
        setActive in interface Activation
      • isRuleInUse

        public boolean isRuleInUse()
      • getCallback

        public java.lang.Runnable getCallback()
        Specified by:
        getCallback in interface AgendaItem
      • setCallback

        public void setCallback​(java.lang.Runnable callback)
        Specified by:
        setCallback in interface AgendaItem