Changeset 10483 for branches/LogResidualEvaluator/HeuristicLab.Problems.Instances.VehicleRouting/3.4/VRPInstanceProvider.cs
- Timestamp:
- 02/20/14 14:56:39 (11 years ago)
- Location:
- branches/LogResidualEvaluator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LogResidualEvaluator
- Property svn:mergeinfo changed
-
branches/LogResidualEvaluator/HeuristicLab.Problems.Instances.VehicleRouting/3.4/VRPInstanceProvider.cs
r9456 r10483 29 29 30 30 namespace HeuristicLab.Problems.Instances.VehicleRouting { 31 public abstract class VRPInstanceProvider <T> : ProblemInstanceProvider<T>, IVRPInstanceProvider where T : IVRPData{31 public abstract class VRPInstanceProvider : ProblemInstanceProvider<VRPData>, IVRPInstanceProvider { 32 32 protected abstract string FileName { get; } 33 33 … … 52 52 } 53 53 54 public override TLoadData(IDataDescriptor id) {54 public override VRPData LoadData(IDataDescriptor id) { 55 55 var descriptor = (VRPDataDescriptor)id; 56 56 var instanceArchiveName = GetResourceName(FileName + @"\.zip"); … … 76 76 } 77 77 78 private static void LoadSolution(Stream stream, Tinstance) {78 private static void LoadSolution(Stream stream, VRPData instance) { 79 79 List<List<int>> routes = new List<List<int>>(); 80 80 … … 99 99 } 100 100 101 public static void LoadSolution(string path, Tinstance) {101 public static void LoadSolution(string path, VRPData instance) { 102 102 using (FileStream stream = new FileStream(path, FileMode.Open)) { 103 103 LoadSolution(stream, instance); … … 105 105 } 106 106 107 protected abstract TLoadData(Stream stream);107 protected abstract VRPData LoadData(Stream stream); 108 108 109 109 public IVRPData Import(string vrpFile, string tourFile) { … … 116 116 117 117 public void Export(IVRPData instance, string path) { 118 ExportData(( T)instance, path);118 ExportData((VRPData)instance, path); 119 119 } 120 120
Note: See TracChangeset
for help on using the changeset viewer.