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 typeboolean
int
double
double
getDelta()
int
getPoint()
double
getValue()
int
hashCode()
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: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>
-
getPoint
public int getPoint() -
getCluster
public int getCluster() -
getDelta
public double getDelta() -
getClusterScoreChange
public double getClusterScoreChange()
-