Class SwapMove
java.lang.Object
es.urjc.etsii.grafo.solution.Move<VRPODSolution,VRPODInstance>
es.urjc.etsii.grafo.vrpod.model.solution.BaseMove
es.urjc.etsii.grafo.vrpod.model.solution.SwapMove
-
Field Summary
Fields inherited from class es.urjc.etsii.grafo.solution.Move
solutionVersion -
Constructor Summary
ConstructorsConstructorDescriptionSwapMove(VRPODSolution solution, int driver1, int position1, double costChangePosition1, int driver2, int position2, double costChangePosition2) -
Method Summary
Modifier and TypeMethodDescription_execute(VRPODSolution solution) Executes the proposed move, to be implemented by each move typebooleandoublegetValue()inthashCode()toString()Returns a String representation of the current movement.
-
Constructor Details
-
SwapMove
public SwapMove(VRPODSolution solution, int driver1, int position1, double costChangePosition1, int driver2, int position2, double costChangePosition2)
-
-
Method Details
-
_execute
Description copied from class:MoveExecutes the proposed move, to be implemented by each move type- Specified by:
_executein classMove<VRPODSolution,VRPODInstance>
-
getValue
public double getValue() -
equals
Description copied from class:Move- Specified by:
equalsin classMove<VRPODSolution,VRPODInstance>
-
hashCode
public int hashCode()Description copied from class:Move- Specified by:
hashCodein classMove<VRPODSolution,VRPODInstance>
-
toString
Description copied from class:MoveReturns a String representation of the current movement. Tip: Default IDEs implementations are usually fine- Specified by:
toStringin classMove<VRPODSolution,VRPODInstance> - Returns:
- human readable string
-