Class AssignMove
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.AssignMove
Assigns a point to a cluster
-
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 typebooleanintdoubledoublegetDelta()intgetPoint()doublegetValue()inthashCode()toString()Returns a String representation of the current movement.
-
Constructor Details
-
AssignMove
Move constructor- Parameters:
solution- solutionpoint-cluster-
-
-
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>
-
getPoint
public int getPoint() -
getCluster
public int getCluster() -
getDelta
public double getDelta() -
getClusterScoreChange
public double getClusterScoreChange()
-