- Timestamp:
- 08/19/14 15:52:56 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.Instances.VehicleRouting/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.VehicleRouting/3.4/IVRPInstanceProvider.cs
r11286 r11287 21 21 22 22 namespace HeuristicLab.Problems.Instances.VehicleRouting { 23 public interface IVRPInstanceProvider <T> where T : IVRPData{23 public interface IVRPInstanceProvider { 24 24 bool CanImportData { get; } 25 TImport(string vrpFile, string tourFile);25 IVRPData Import(string vrpFile, string tourFile); 26 26 27 27 bool CanExportData { get; } 28 void Export( Tinstance, string path);28 void Export(IVRPData instance, string path); 29 29 } 30 30 } -
trunk/sources/HeuristicLab.Problems.Instances.VehicleRouting/3.4/VRPInstanceProvider.cs
r11286 r11287 29 29 30 30 namespace HeuristicLab.Problems.Instances.VehicleRouting { 31 public abstract class VRPInstanceProvider<T> : ProblemInstanceProvider<T>, IVRPInstanceProvider <T>where T : IVRPData {31 public abstract class VRPInstanceProvider<T> : ProblemInstanceProvider<T>, IVRPInstanceProvider where T : IVRPData { 32 32 protected abstract string FileName { get; } 33 33 … … 107 107 protected abstract T LoadData(Stream stream); 108 108 109 public TImport(string vrpFile, string tourFile) {109 public IVRPData Import(string vrpFile, string tourFile) { 110 110 var data = ImportData(vrpFile); 111 111 if (!String.IsNullOrEmpty(tourFile)) { … … 115 115 } 116 116 117 public void Export( Tinstance, string path) {118 ExportData( instance, path);117 public void Export(IVRPData instance, string path) { 118 ExportData((T)instance, path); 119 119 } 120 120
Note: See TracChangeset
for help on using the changeset viewer.