Modifier and Type | Field and Description |
---|---|
protected List<SingletonInverseVariableSupply> |
inverseVariableSupplyList |
leftEntity, rightEntity, variableDescriptorList
Constructor and Description |
---|
ChainedSwapMove(List<GenuineVariableDescriptor> variableDescriptorList,
List<SingletonInverseVariableSupply> inverseVariableSupplyList,
Object leftEntity,
Object rightEntity) |
Modifier and Type | Method and Description |
---|---|
Move |
createUndoMove(ScoreDirector scoreDirector)
Called before the move is done, so the move can be evaluated and then be undone
without resulting into a permanent change in the solution.
|
protected void |
doMoveOnGenuineVariables(ScoreDirector scoreDirector)
Like
AbstractMove.doMove(ScoreDirector) but without the ScoreDirector.triggerVariableListeners() call
(because AbstractMove.doMove(ScoreDirector) already does that). |
appendVariablesToString, equals, getLeftEntity, getPlanningEntities, getPlanningValues, getRightEntity, getSimpleMoveTypeDescription, hashCode, isMoveDoable, toString
doMove
protected final List<SingletonInverseVariableSupply> inverseVariableSupplyList
public ChainedSwapMove(List<GenuineVariableDescriptor> variableDescriptorList, List<SingletonInverseVariableSupply> inverseVariableSupplyList, Object leftEntity, Object rightEntity)
public Move createUndoMove(ScoreDirector scoreDirector)
Move
createUndoMove
in interface Move
createUndoMove
in class SwapMove
scoreDirector
- the ScoreDirector
not yet modified by the move.protected void doMoveOnGenuineVariables(ScoreDirector scoreDirector)
AbstractMove
AbstractMove.doMove(ScoreDirector)
but without the ScoreDirector.triggerVariableListeners()
call
(because AbstractMove.doMove(ScoreDirector)
already does that).doMoveOnGenuineVariables
in class SwapMove
scoreDirector
- never nullCopyright © 2006–2016 JBoss by Red Hat. All rights reserved.