S
- the Score
type used by this use casepublic abstract class AbstractSolution<S extends Score> extends Object implements Solution<S>, Serializable
Constructor and Description |
---|
AbstractSolution() |
Modifier and Type | Method and Description |
---|---|
Collection<?> |
getProblemFacts()
|
S |
getScore()
Returns the
Score of this Solution. |
void |
setScore(S score)
|
public S getScore()
Solution
Score
of this Solution.public Collection<?> getProblemFacts()
Solution
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.
getProblemFacts
in interface Solution<S extends Score>
Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.