Package es.urjc.etsii.grafo.testutil
Class TestMove
-
Field Summary
Fields inherited from class es.urjc.etsii.grafo.solution.Move
solutionVersion
-
Constructor Summary
ConstructorsConstructorDescriptionTestMove
(TestSolution solution, double v) TestMove
(TestSolution solution, double delta, FMode fmode) -
Method Summary
Modifier and TypeMethodDescriptionprotected TestSolution
_execute
(TestSolution solution) Executes the proposed move, to be implemented by each move typeboolean
generateSeq
(double... data) generateSeq
(String instanceName, double... data) getFmode()
double
int
hashCode()
boolean
boolean
toString()
Returns a String representation of the current movement.
-
Constructor Details
-
TestMove
-
TestMove
-
-
Method Details
-
generateSeq
-
generateSeq
-
_execute
Description copied from class:Move
Executes the proposed move, to be implemented by each move type- Specified by:
_execute
in classMove<TestSolution,
TestInstance>
-
getScoreChange
public double getScoreChange() -
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<TestSolution,
TestInstance> - Returns:
- human readable string
-
equals
Description copied from class:Move
- Specified by:
equals
in classMove<TestSolution,
TestInstance>
-
hashCode
public int hashCode()Description copied from class:Move
- Specified by:
hashCode
in classMove<TestSolution,
TestInstance>
-
isMaximizing
public boolean isMaximizing() -
isMinimizing
public boolean isMinimizing() -
getFmode
-