Ticket #2225: VehicleRoutingProblem.cs.patch

File VehicleRoutingProblem.cs.patch, 1.3 KB (added by pfleck, 7 years ago)
  • HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs

     
    4141  [Item("Vehicle Routing Problem", "Represents a Vehicle Routing Problem.")]
    4242  [Creatable("Problems")]
    4343  [StorableClass]
    44   public sealed class VehicleRoutingProblem : Problem, ISingleObjectiveHeuristicOptimizationProblem, IStorableContent, IProblemInstanceConsumer<VRPData> {
     44  public sealed class VehicleRoutingProblem : Problem, ISingleObjectiveHeuristicOptimizationProblem, IStorableContent,
     45    IProblemInstanceConsumer<VRPData>, IProblemInstanceConsumer<CVRPData> {
    4546    public string Filename { get; set; }
    4647
    4748    public static new Image StaticItemImage {
     
    400401      Load(data, (IVRPDataInterpreter)Activator.CreateInstance(concreteInterpreter));
    401402    }
    402403
     404    public void Load(CVRPData data) {
     405      Load((VRPData)data);
     406    }
     407
    403408    private Type GetInterpreterDataType(Type type) {
    404409      var parentInterfaces = type.BaseType.GetInterfaces();
    405410      var interfaces = type.GetInterfaces().Except(parentInterfaces);