Class FLPSwapNeigh.SwapMove
java.lang.Object
es.urjc.etsii.grafo.solution.Move<FLPSolution, FLPInstance>
es.urjc.etsii.grafo.flayouts.model.FLPMove
es.urjc.etsii.grafo.flayouts.model.FLPSwapNeigh.SwapMove
- Enclosing class:
FLPSwapNeigh
-
Field Summary
Fields inherited from class Move
solutionVersion -
Constructor Summary
ConstructorsConstructorDescriptionSwapMove(FLPSolution s, int row1, int pos1, int row2, int pos2) SwapMove(FLPSolution s, int row1, int pos1, int row2, int pos2, double cost) -
Method Summary
Modifier and TypeMethodDescriptionprotected FLPSolution_execute(FLPSolution solution) Executes the proposed move, to be implemented by each move typestatic doubleconsecutiveSwapCost(FLPSolution solution, int rowIdx, int leftIndex, int rightIndex) booleaninthashCode()static doubleswapCost(FLPSolution solution, int row1, int pos1, int row2, int pos2)
-
Constructor Details
-
SwapMove
-
SwapMove
-
-
Method Details
-
swapCost
-
consecutiveSwapCost
public static double consecutiveSwapCost(FLPSolution solution, int rowIdx, int leftIndex, int rightIndex) -
_execute
Description copied from class:MoveExecutes the proposed move, to be implemented by each move type- Specified by:
_executein classMove<FLPSolution, FLPInstance>
-
equals
-
hashCode
-