Class SwapMove
java.lang.Object
es.urjc.etsii.grafo.solution.Move<BMSSCSolution,BMSSCInstance>
es.urjc.etsii.grafo.bmssc.model.sol.BMSSCMove
es.urjc.etsii.grafo.bmssc.model.sol.SwapMove
Swap this point with another one in a different cluster. Swaps between points in the same cluster are not allowed.
-
Field Summary
Fields inherited from class es.urjc.etsii.grafo.solution.Move
solutionVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BMSSCSolution_execute(BMSSCSolution solution) Executes the proposed move, to be implemented by each move typebooleandoublegetValue()inthashCode()toString()Returns a String representation of the current movement.
-
Constructor Details
-
SwapMove
Move constructor- Parameters:
solution- solution
-
-
Method Details
-
_execute
Description copied from class:MoveExecutes the proposed move, to be implemented by each move type- Specified by:
_executein classMove<BMSSCSolution,BMSSCInstance>
-
getValue
public double getValue() -
toString
Description copied from class:MoveReturns a String representation of the current movement. Tip: Default IDEs implementations are usually fine- Specified by:
toStringin classMove<BMSSCSolution,BMSSCInstance> - Returns:
- human readable string
-
equals
Description copied from class:Move- Specified by:
equalsin classMove<BMSSCSolution,BMSSCInstance>
-
hashCode
public int hashCode()Description copied from class:Move- Specified by:
hashCodein classMove<BMSSCSolution,BMSSCInstance>
-