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 typebooleangenerateSeq(double... data) generateSeq(String instanceName, double... data) getFmode()doubleinthashCode()booleanbooleantoString()Returns a String representation of the current movement.
-
Constructor Details
-
TestMove
-
TestMove
-
-
Method Details
-
generateSeq
-
generateSeq
-
_execute
Description copied from class:MoveExecutes the proposed move, to be implemented by each move type- Specified by:
_executein classMove<TestSolution,TestInstance>
-
getScoreChange
public double getScoreChange() -
toString
Description copied from class:MoveReturns a String representation of the current movement. Tip: Default IDEs implementations are usually fine- Specified by:
toStringin classMove<TestSolution,TestInstance> - Returns:
- human readable string
-
equals
Description copied from class:Move- Specified by:
equalsin classMove<TestSolution,TestInstance>
-
hashCode
public int hashCode()Description copied from class:Move- Specified by:
hashCodein classMove<TestSolution,TestInstance>
-
isMaximizing
public boolean isMaximizing() -
isMinimizing
public boolean isMinimizing() -
getFmode
-