public abstract class AbstractMove extends Object implements Move
MoveMove| Constructor and Description |
|---|
AbstractMove() |
| Modifier and Type | Method and Description |
|---|---|
void |
doMove(ScoreDirector scoreDirector)
Does the Move and updates the
Solution and its ScoreDirector accordingly. |
protected abstract void |
doMoveOnGenuineVariables(ScoreDirector scoreDirector)
Like
doMove(ScoreDirector) but without the ScoreDirector.triggerVariableListeners() call
(because doMove(ScoreDirector) already does that). |
String |
getSimpleMoveTypeDescription()
Describes the move type for statistical purposes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateUndoMove, getPlanningEntities, getPlanningValues, isMoveDoablepublic String getSimpleMoveTypeDescription()
Move
The format is not formalized. Never parse the String returned by this method.
getSimpleMoveTypeDescription in interface Movepublic final void doMove(ScoreDirector scoreDirector)
MoveSolution and its ScoreDirector accordingly.
When the Solution is modified, the ScoreDirector should be correctly notified,
otherwise later calculated Scores can be corrupted.
This method must end with calling ScoreDirector.triggerVariableListeners() to ensure all shadow variables are updated.
doMove in interface MovescoreDirector - never null, the ScoreDirector that needs to get notified of the changes.protected abstract void doMoveOnGenuineVariables(ScoreDirector scoreDirector)
doMove(ScoreDirector) but without the ScoreDirector.triggerVariableListeners() call
(because doMove(ScoreDirector) already does that).scoreDirector - never nullCopyright © 2006–2015 JBoss by Red Hat. All rights reserved.