Class InsertMove
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.InsertMove
-
Field Summary
Fields inherited from class es.urjc.etsii.grafo.solution.Move
solutionVersion
-
Constructor Summary
ConstructorsConstructorDescriptionInsertMove
(VRPODSolution solution, int customer, int driver1, int position1, double costChangeRoute1, int driver2, int position2, double costChangeRoute2) -
Method Summary
Modifier and TypeMethodDescription_execute
(VRPODSolution solution) Executes the proposed move, to be implemented by each move typeboolean
double
getValue()
int
hashCode()
toString()
Returns a String representation of the current movement.
-
Constructor Details
-
InsertMove
public InsertMove(VRPODSolution solution, int customer, int driver1, int position1, double costChangeRoute1, int driver2, int position2, double costChangeRoute2)
-
-
Method Details
-
getValue
public double getValue() -
_execute
Description copied from class:Move
Executes the proposed move, to be implemented by each move type- Specified by:
_execute
in classMove<VRPODSolution,
VRPODInstance>
-
equals
Description copied from class:Move
- Specified by:
equals
in classMove<VRPODSolution,
VRPODInstance>
-
hashCode
public int hashCode()Description copied from class:Move
- Specified by:
hashCode
in classMove<VRPODSolution,
VRPODInstance>
-
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<VRPODSolution,
VRPODInstance> - Returns:
- human readable string
-