public interface ProblemFactChange
Solution
.
Problem facts used by a Solver
must not be changed while it is solving,
but by scheduling this command to the Solver
, you can change them when the time is right.
Note that the Solver
clones a Solution
at will.
So any change must be done on the problem facts and planning entities referenced by the Solution
of the ScoreDirector
. On each change it should also notify the ScoreDirector
accordingly.
Modifier and Type | Method and Description |
---|---|
void |
doChange(ScoreDirector scoreDirector)
|
void doChange(ScoreDirector scoreDirector)
Solution
of the ScoreDirector
and notifies the ScoreDirector
accordingly.
Every modification to the Solution
, must be correctly notified to the ScoreDirector
,
otherwise the Score
calculation will be corrupted.scoreDirector
- never null
Contains the working Solution
which contains the problem facts (and planning entities) to change.
Also needs to get notified of those changes.Copyright © 2006–2016 JBoss by Red Hat. All rights reserved.