public interface Solution<S extends Score>
PlanningSolution
describes declarative properties.Modifier and Type | Method and Description |
---|---|
Collection<? extends Object> |
getProblemFacts()
|
S |
getScore()
Returns the
Score of this Solution. |
void |
setScore(S score)
|
void setScore(S score)
score
- null if the Solution has changed and the new Score
has not yet been recalculatedCollection<? extends Object> getProblemFacts()
DroolsScoreDirector
when the Solution
needs to be inserted
into an empty KieSession
.
These facts can be used by the score rules.
They don't change during planning (except through ProblemFactChange
events).
Do not include the planning entities as problem facts:
they are automatically inserted into the KieSession
if and only if they are initialized.
When they are initialized later, they are also automatically inserted.Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.