public abstract class AbstractMove extends Object implements Move
Move
Move
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, wait
createUndoMove, getPlanningEntities, getPlanningValues, isMoveDoable
public String getSimpleMoveTypeDescription()
Move
The format is not formalized. Never parse the String
returned by this method.
getSimpleMoveTypeDescription
in interface Move
public final void doMove(ScoreDirector scoreDirector)
Move
Solution
and its ScoreDirector
accordingly.
When the Solution
is modified, the ScoreDirector
should be correctly notified,
otherwise later calculated Score
s can be corrupted.
This method must end with calling ScoreDirector.triggerVariableListeners()
to ensure all shadow variables are updated.
doMove
in interface Move
scoreDirector
- 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.