Solution_- the solution type, the class with the
public interface ProblemFactChange<Solution_>
PlanningSolution. Problem facts used by a
Solvermust 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
PlanningSolution at will.
So any change must be done on the problem facts and planning entities referenced by the
ScoreDirector. On each change it should also notify the
|Modifier and Type||Method and Description|
Does the change on the
void doChange(ScoreDirector<Solution_> scoreDirector)
ScoreDirectorand notifies the
ScoreDirectoraccordingly. Every modification to the
PlanningSolution, must be correctly notified to the
ScoreDirector, otherwise the
Scorecalculation will be corrupted.
scoreDirector- never null Contains the
working solutionwhich contains the problem facts (and
planning entities) to change. Also needs to get notified of those changes.
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.