Solution_
- the solution type, the class with the PlanningSolution
annotationpublic class ChainedSwapMove<Solution_> extends SwapMove<Solution_>
Modifier and Type | Field and Description |
---|---|
protected List<SingletonInverseVariableSupply> |
inverseVariableSupplyList |
leftEntity, rightEntity, variableDescriptorList
Constructor and Description |
---|
ChainedSwapMove(List<GenuineVariableDescriptor<Solution_>> variableDescriptorList,
List<SingletonInverseVariableSupply> inverseVariableSupplyList,
Object leftEntity,
Object rightEntity) |
Modifier and Type | Method and Description |
---|---|
ChainedSwapMove<Solution_> |
createUndoMove(ScoreDirector<Solution_> 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<Solution_> 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, getVariableNameList, hashCode, isMoveDoable, toString
doMove
protected final List<SingletonInverseVariableSupply> inverseVariableSupplyList
public ChainedSwapMove(List<GenuineVariableDescriptor<Solution_>> variableDescriptorList, List<SingletonInverseVariableSupply> inverseVariableSupplyList, Object leftEntity, Object rightEntity)
public ChainedSwapMove<Solution_> createUndoMove(ScoreDirector<Solution_> scoreDirector)
AbstractMove
createUndoMove
in class SwapMove<Solution_>
scoreDirector
- the ScoreDirector
not yet modified by the move.protected void doMoveOnGenuineVariables(ScoreDirector<Solution_> scoreDirector)
AbstractMove
AbstractMove.doMove(ScoreDirector)
but without the ScoreDirector.triggerVariableListeners()
call
(because AbstractMove.doMove(ScoreDirector)
already does that).doMoveOnGenuineVariables
in class SwapMove<Solution_>
scoreDirector
- never nullCopyright © 2006–2017 JBoss by Red Hat. All rights reserved.