Package es.urjc.etsii.grafo.solution
Class Move<S extends Solution<S,I>,I extends Instance>
java.lang.Object
es.urjc.etsii.grafo.solution.Move<S,I>
- Direct Known Subclasses:
__RNAME__BaseMove
,TestMove
,TestMoveWithMultipleObjectives
,TSPBaseMove
Represents a change for a given solution in a given neighborhood
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final long
This variable is used internally to check if the current solution has been modified. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
solutionVersion
protected final long solutionVersionThis variable is used internally to check if the current solution has been modified.
-
-
Constructor Details
-
Move
Move constructor- Parameters:
solution
- solution
-
-
Method Details
-
execute
Executes the proposed move -
_execute
Executes the proposed move, to be implemented by each move type -
toString
Returns a String representation of the current movement. Tip: Default IDEs implementations are usually fine -
equals
-
hashCode
public abstract int hashCode()
-