Class SessionDescriptor<Score_ extends Score<Score_>>
- java.lang.Object
-
- org.optaplanner.core.impl.score.stream.drools.SessionDescriptor<Score_>
-
-
Constructor Summary
Constructors Constructor Description SessionDescriptor(org.kie.api.runtime.KieSession session, AbstractScoreInliner<Score_> scoreInliner, org.kie.api.runtime.rule.AgendaFilter agendaFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kie.api.runtime.rule.AgendaFilter
getAgendaFilter()
The purpose of the agenda filter is to determine which rules should run.AbstractScoreInliner<Score_>
getScoreInliner()
Used to obtain the latestScore
and related information from the session returned bygetSession()
.org.kie.api.runtime.KieSession
getSession()
-
-
-
Constructor Detail
-
SessionDescriptor
public SessionDescriptor(org.kie.api.runtime.KieSession session, AbstractScoreInliner<Score_> scoreInliner, org.kie.api.runtime.rule.AgendaFilter agendaFilter)
-
-
Method Detail
-
getSession
public org.kie.api.runtime.KieSession getSession()
- Returns:
- never null
-
getScoreInliner
public AbstractScoreInliner<Score_> getScoreInliner()
Used to obtain the latestScore
and related information from the session returned bygetSession()
.- 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 callStatefulRuleSession.fireAllRules(AgendaFilter)
on the session returned bygetSession()
with this filter, never without it.- Returns:
- null when there are no disabled rules
-
-