Class NoChangeCustomPhaseCommand
java.lang.Object
org.optaplanner.core.impl.phase.custom.NoChangeCustomPhaseCommand
- All Implemented Interfaces:
- CustomPhaseCommand<Object>
Makes no changes.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidchangeWorkingSolution(ScoreDirector<Object> scoreDirector) Changesworking solutionofScoreDirector.getWorkingSolution().
- 
Constructor Details- 
NoChangeCustomPhaseCommandpublic NoChangeCustomPhaseCommand()
 
- 
- 
Method Details- 
changeWorkingSolutionDescription 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 everyInnerScoreDirector.calculateScore()call) to ensure all shadow variables are updated.- Specified by:
- changeWorkingSolutionin interface- CustomPhaseCommand<Object>
- Parameters:
- scoreDirector- never null, the- ScoreDirectorthat needs to get notified of the changes.
 
 
-