Class ReassignMove
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.ReassignMove
Removes a point from a cluster and adds it to another cluster
-
Field Summary
Fields inherited from class es.urjc.etsii.grafo.solution.Move
solutionVersion
-
Constructor Summary
ConstructorsConstructorDescriptionReassignMove
(BMSSCSolution solution, int pointId, int targetCluster) Move constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected BMSSCSolution
_execute
(BMSSCSolution solution) Executes the proposed move, to be implemented by each move typeboolean
double
getValue()
int
hashCode()
toString()
Returns a String representation of the current movement.
-
Constructor Details
-
ReassignMove
Move constructor- Parameters:
solution
- solution
-
-
Method Details
-
_execute
Description copied from class:Move
Executes the proposed move, to be implemented by each move type- Specified by:
_execute
in classMove<BMSSCSolution,
BMSSCInstance>
-
getValue
public double getValue() -
toString
Description copied from class:Move
Returns a String representation of the current movement. Tip: Default IDEs implementations are usually fine- Specified by:
toString
in classMove<BMSSCSolution,
BMSSCInstance> - Returns:
- human readable string
-
equals
Description copied from class:Move
- Specified by:
equals
in classMove<BMSSCSolution,
BMSSCInstance>
-
hashCode
public int hashCode()Description copied from class:Move
- Specified by:
hashCode
in classMove<BMSSCSolution,
BMSSCInstance>
-