Class SwapNeighborhood.SwapMove
java.lang.Object
es.urjc.etsii.grafo.solution.Move<TSPSolution,TSPInstance>
es.urjc.etsii.grafo.tsp.model.TSPBaseMove
es.urjc.etsii.grafo.tsp.model.neighs.SwapNeighborhood.SwapMove
- Enclosing class:
SwapNeighborhood
-
Field Summary
Fields inherited from class es.urjc.etsii.grafo.tsp.model.TSPBaseMove
distanceDeltaFields inherited from class es.urjc.etsii.grafo.solution.Move
solutionVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TSPSolution_execute(TSPSolution solution) Executes the proposed move, to be implemented by each move typebooleaninthashCode()toString()Returns a String representation of the current movement.Methods inherited from class es.urjc.etsii.grafo.tsp.model.TSPBaseMove
getDistanceDelta
-
Constructor Details
-
SwapMove
-
-
Method Details
-
_execute
Description copied from class:MoveExecutes the proposed move, to be implemented by each move type- Specified by:
_executein classMove<TSPSolution,TSPInstance>
-
toString
Description copied from class:MoveReturns a String representation of the current movement. Tip: Default IDEs implementations are usually fine- Specified by:
toStringin classMove<TSPSolution,TSPInstance> - Returns:
- human readable string
-
equals
Description copied from class:Move- Specified by:
equalsin classMove<TSPSolution,TSPInstance>
-
hashCode
public int hashCode()Description copied from class:Move- Specified by:
hashCodein classMove<TSPSolution,TSPInstance>
-