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/VRPInstanceProvider.cs

    r8180 r8192  
    107107    protected abstract T LoadData(Stream stream);
    108108
    109     public IVRPData LoadData(string vrpFile, string tourFile) {
    110       var data = LoadData(vrpFile);
     109    public IVRPData Import(string vrpFile, string tourFile) {
     110      var data = ImportData(vrpFile);
    111111      if (!String.IsNullOrEmpty(tourFile)) {
    112112        LoadSolution(tourFile, data);
    113113      }
    114114      return data;
     115    }
     116
     117    public void Export(IVRPData instance, string path) {
     118      ExportData((T)instance, path);
    115119    }
    116120
Note: See TracChangeset for help on using the changeset viewer.