Class NoChangeCustomPhaseCommand
- java.lang.Object
 - 
- org.optaplanner.core.impl.phase.custom.AbstractCustomPhaseCommand<Object>
 - 
- org.optaplanner.core.impl.phase.custom.NoChangeCustomPhaseCommand
 
 
 
- 
- All Implemented Interfaces:
 CustomPhaseCommand<Object>
public class NoChangeCustomPhaseCommand extends AbstractCustomPhaseCommand<Object>
Makes no changes. 
- 
- 
Constructor Summary
Constructors Constructor Description NoChangeCustomPhaseCommand() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeWorkingSolution(ScoreDirector<Object> scoreDirector)Changesworking solutionofScoreDirector.getWorkingSolution(). 
 - 
 
- 
- 
Method Detail
- 
changeWorkingSolution
public void changeWorkingSolution(ScoreDirector<Object> scoreDirector)
Description copied from interface:CustomPhaseCommandChangesworking solutionofScoreDirector.getWorkingSolution(). When theworking solutionis modified, theScoreDirectormust be correctly notified (throughScoreDirector.beforeVariableChanged(Object, String)andScoreDirector.afterVariableChanged(Object, String)), otherwise calculatedScores will be corrupted.Don't forget to call
ScoreDirector.triggerVariableListeners()after each set of changes (especially before everyScoreDirector.calculateScore()call) to ensure all shadow variables are updated.- Parameters:
 scoreDirector- never null, theScoreDirectorthat needs to get notified of the changes.
 
 - 
 
 -