Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/03/12 13:41:36 (12 years ago)
Author:
sforsten
Message:

#1782:

  • renamed CanSave to CanExportData and SaveData to ExportData
  • added the same functionality for importing problem instance as we implemented for exporting
  • some special changes had to be made in Problems.Instances.VehicleRouting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Instances.VehicleRouting/3.4/GoldenFormat/GoldenFormatInstanceProvider.cs

    r7887 r8192  
    2121
    2222using System;
    23 using System.Collections.Generic;
    2423using System.IO;
    25 using System.Linq;
    26 using System.Reflection;
    27 using System.Text.RegularExpressions;
    28 using ICSharpCode.SharpZipLib.Zip;
    29 using HeuristicLab.Problems.Instances.TSPLIB;
    3024
    3125namespace HeuristicLab.Problems.Instances.VehicleRouting {
     
    3529    }
    3630
    37     public override CVRPTWData LoadData(string path) {
     31    public override bool CanImportData {
     32      get { return true; }
     33    }
     34    public override CVRPTWData ImportData(string path) {
    3835      return LoadInstance(new GoldenParser(path));
    3936    }
     
    6663      }
    6764
    68       if(parser.Distance > 0)
     65      if (parser.Distance > 0)
    6966        instance.DueTimes[0] = parser.Distance;
    7067
Note: See TracChangeset for help on using the changeset viewer.