Class SessionDescriptor<Score_ extends org.optaplanner.core.api.score.Score<Score_>>

java.lang.Object
org.optaplanner.constraint.streams.drools.SessionDescriptor<Score_>

public final class SessionDescriptor<Score_ extends org.optaplanner.core.api.score.Score<Score_>> extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    SessionDescriptor(org.kie.api.runtime.KieSession session, org.optaplanner.constraint.streams.common.inliner.AbstractScoreInliner<Score_> scoreInliner, org.kie.api.runtime.rule.AgendaFilter agendaFilter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.kie.api.runtime.rule.AgendaFilter
    The purpose of the agenda filter is to determine which rules should run.
    org.optaplanner.constraint.streams.common.inliner.AbstractScoreInliner<Score_>
    Used to obtain the latest Score and related information from the session returned by getSession().
    org.kie.api.runtime.KieSession
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SessionDescriptor

      public SessionDescriptor(org.kie.api.runtime.KieSession session, org.optaplanner.constraint.streams.common.inliner.AbstractScoreInliner<Score_> scoreInliner, org.kie.api.runtime.rule.AgendaFilter agendaFilter)
  • Method Details

    • getSession

      public org.kie.api.runtime.KieSession getSession()
      Returns:
      never null
    • getScoreInliner

      public org.optaplanner.constraint.streams.common.inliner.AbstractScoreInliner<Score_> getScoreInliner()
      Used to obtain the latest Score and related information from the session returned by getSession().
      Returns:
      never null
    • getAgendaFilter

      public org.kie.api.runtime.rule.AgendaFilter getAgendaFilter()
      The purpose of the agenda filter is to determine which rules should run. The agenda filter will prevent rules from firing whose constraint weights are set to zero. Always call StatefulRuleSession.fireAllRules(AgendaFilter) on the session returned by getSession() with this filter, never without it.
      Returns:
      null when there are no disabled rules