basics
Class VehicleRoutingProblemSolution

java.lang.Object
  extended by basics.VehicleRoutingProblemSolution

public class VehicleRoutingProblemSolution
extends java.lang.Object

Contains the solution of a vehicle routing problem and its corresponding costs.

Author:
stefan schröder

Field Summary
static double NO_COST_YET
           
 
Constructor Summary
VehicleRoutingProblemSolution(java.util.Collection<VehicleRoute> routes, double cost)
          Constructs a solution with a number of VehicleRoutes and their corresponding aggregate cost value.
 
Method Summary
static VehicleRoutingProblemSolution copyOf(VehicleRoutingProblemSolution solution2copy)
          Makes a deep copy of the solution to be copied.
 double getCost()
           
 java.util.Collection<VehicleRoute> getRoutes()
           
 void setCost(double cost)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_COST_YET

public static double NO_COST_YET
Constructor Detail

VehicleRoutingProblemSolution

public VehicleRoutingProblemSolution(java.util.Collection<VehicleRoute> routes,
                                     double cost)
Constructs a solution with a number of VehicleRoutes and their corresponding aggregate cost value.

Parameters:
routes -
cost -
Method Detail

copyOf

public static VehicleRoutingProblemSolution copyOf(VehicleRoutingProblemSolution solution2copy)
Makes a deep copy of the solution to be copied.

Parameters:
solution2copy -
Returns:

getRoutes

public java.util.Collection<VehicleRoute> getRoutes()

getCost

public double getCost()

setCost

public void setCost(double cost)