Class RuleUnitExecutorImpl

  • All Implemented Interfaces:
    org.drools.base.base.ValueResolver, org.drools.core.common.ReteEvaluator

    public class RuleUnitExecutorImpl
    extends java.lang.Object
    implements org.drools.core.common.ReteEvaluator
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RuleUnitExecutorImpl.RuleUnitKnowledgeHelper  
      • Nested classes/interfaces inherited from interface org.drools.core.common.ReteEvaluator

        org.drools.core.common.ReteEvaluator.InternalOperationType
    • Constructor Summary

      Constructors 
      Constructor Description
      RuleUnitExecutorImpl​(org.drools.core.impl.InternalRuleBase knowledgeBase)  
      RuleUnitExecutorImpl​(org.drools.core.impl.InternalRuleBase knowledgeBase, org.drools.core.SessionConfiguration sessionConfiguration)  
    • Constructor Detail

      • RuleUnitExecutorImpl

        public RuleUnitExecutorImpl​(org.drools.core.impl.InternalRuleBase knowledgeBase)
      • RuleUnitExecutorImpl

        public RuleUnitExecutorImpl​(org.drools.core.impl.InternalRuleBase knowledgeBase,
                                    org.drools.core.SessionConfiguration sessionConfiguration)
    • Method Detail

      • getIdentifier

        public long getIdentifier()
        Specified by:
        getIdentifier in interface org.drools.core.common.ReteEvaluator
      • getActivationsManager

        public org.drools.core.common.ActivationsManager getActivationsManager()
        Specified by:
        getActivationsManager in interface org.drools.core.common.ReteEvaluator
      • getKnowledgeBase

        public org.drools.core.impl.InternalRuleBase getKnowledgeBase()
        Specified by:
        getKnowledgeBase in interface org.drools.core.common.ReteEvaluator
      • getRuleBase

        public org.drools.core.impl.InternalRuleBase getRuleBase()
        Specified by:
        getRuleBase in interface org.drools.base.base.ValueResolver
      • getEntryPoints

        public java.util.Collection<? extends org.kie.api.runtime.rule.EntryPoint> getEntryPoints()
        Specified by:
        getEntryPoints in interface org.drools.core.common.ReteEvaluator
      • getEntryPoint

        public org.drools.core.WorkingMemoryEntryPoint getEntryPoint​(java.lang.String name)
        Specified by:
        getEntryPoint in interface org.drools.core.common.ReteEvaluator
      • getNodeMemory

        public <T extends org.drools.core.common.Memory> T getNodeMemory​(org.drools.core.common.MemoryFactory<T> node)
        Specified by:
        getNodeMemory in interface org.drools.core.common.ReteEvaluator
      • getNodeMemories

        public org.drools.core.common.NodeMemories getNodeMemories()
        Specified by:
        getNodeMemories in interface org.drools.core.common.ReteEvaluator
      • getGlobalResolver

        public org.drools.base.rule.accessor.GlobalResolver getGlobalResolver()
        Specified by:
        getGlobalResolver in interface org.drools.base.base.ValueResolver
      • getFactHandleFactory

        public org.drools.core.rule.accessor.FactHandleFactory getFactHandleFactory()
        Specified by:
        getFactHandleFactory in interface org.drools.core.common.ReteEvaluator
      • getFactHandle

        public org.drools.core.common.InternalFactHandle getFactHandle​(java.lang.Object object)
        Specified by:
        getFactHandle in interface org.drools.core.common.ReteEvaluator
      • getTimerService

        public org.drools.core.time.TimerService getTimerService()
        Specified by:
        getTimerService in interface org.drools.core.common.ReteEvaluator
      • addPropagation

        public void addPropagation​(org.drools.core.phreak.PropagationEntry propagationEntry)
        Specified by:
        addPropagation in interface org.drools.core.common.ReteEvaluator
      • getNextPropagationIdCounter

        public long getNextPropagationIdCounter()
        Specified by:
        getNextPropagationIdCounter in interface org.drools.core.common.ReteEvaluator
      • getSessionConfiguration

        public org.drools.core.SessionConfiguration getSessionConfiguration()
        Specified by:
        getSessionConfiguration in interface org.drools.core.common.ReteEvaluator
      • getRuleSessionConfiguration

        public org.drools.core.RuleSessionConfiguration getRuleSessionConfiguration()
        Specified by:
        getRuleSessionConfiguration in interface org.drools.core.common.ReteEvaluator
      • getRuleEventSupport

        public org.drools.core.event.RuleEventListenerSupport getRuleEventSupport()
        Specified by:
        getRuleEventSupport in interface org.drools.core.common.ReteEvaluator
      • getRuleRuntimeEventSupport

        public org.drools.core.event.RuleRuntimeEventSupport getRuleRuntimeEventSupport()
        Specified by:
        getRuleRuntimeEventSupport in interface org.drools.core.common.ReteEvaluator
      • getAgendaEventSupport

        public org.drools.core.event.AgendaEventSupport getAgendaEventSupport()
        Specified by:
        getAgendaEventSupport in interface org.drools.core.common.ReteEvaluator
      • getCurrentTime

        public long getCurrentTime()
        Specified by:
        getCurrentTime in interface org.drools.base.base.ValueResolver
      • getCalendars

        public org.kie.api.runtime.Calendars getCalendars()
        Specified by:
        getCalendars in interface org.drools.core.common.ReteEvaluator
      • getSessionClock

        public org.kie.api.time.SessionClock getSessionClock()
        Specified by:
        getSessionClock in interface org.drools.core.common.ReteEvaluator
      • fireAllRules

        public int fireAllRules()
        Specified by:
        fireAllRules in interface org.drools.core.common.ReteEvaluator
      • fireAllRules

        public int fireAllRules​(int fireLimit)
        Specified by:
        fireAllRules in interface org.drools.core.common.ReteEvaluator
      • fireAllRules

        public int fireAllRules​(org.kie.api.runtime.rule.AgendaFilter agendaFilter)
        Specified by:
        fireAllRules in interface org.drools.core.common.ReteEvaluator
      • fireAllRules

        public int fireAllRules​(org.kie.api.runtime.rule.AgendaFilter agendaFilter,
                                int fireLimit)
        Specified by:
        fireAllRules in interface org.drools.core.common.ReteEvaluator
      • insert

        public org.kie.api.runtime.rule.FactHandle insert​(java.lang.Object object)
        Specified by:
        insert in interface org.drools.core.common.ReteEvaluator
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.drools.core.common.ReteEvaluator
      • getQueryResults

        public org.kie.api.runtime.rule.QueryResults getQueryResults​(java.lang.String queryName,
                                                                     java.lang.Object... arguments)
        Specified by:
        getQueryResults in interface org.drools.core.common.ReteEvaluator
      • getRuleUnits

        public org.drools.ruleunits.api.RuleUnits getRuleUnits()
      • setRuleUnits

        public void setRuleUnits​(org.drools.ruleunits.api.RuleUnits ruleUnits)
      • enableTMS

        public void enableTMS()
        Specified by:
        enableTMS in interface org.drools.core.common.ReteEvaluator
      • isTMSEnabled

        public boolean isTMSEnabled()
        Specified by:
        isTMSEnabled in interface org.drools.core.common.ReteEvaluator
      • createKnowledgeHelper

        public org.drools.core.rule.consequence.KnowledgeHelper createKnowledgeHelper()
        Specified by:
        createKnowledgeHelper in interface org.drools.core.common.ReteEvaluator