Changeset 9010 for trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Interpreters/PDPTWInterpreter.cs
- Timestamp:
- 12/06/12 16:18:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Interpreters/PDPTWInterpreter.cs
r8649 r9010 28 28 29 29 namespace HeuristicLab.Problems.VehicleRouting.Interpreters { 30 public class PDPTWInterpreter : CVRPTWInterpreter, IVRPDataInterpreter<PDPTWData> { 31 public override Type GetDataType() { 32 return typeof(PDPTWData); 33 } 34 30 public class PDPTWInterpreter : CVRPTWInterpreter, IVRPDataInterpreter<PDPTWData> { 35 31 protected override IVRPProblemInstance CreateProblemInstance() { 36 32 return new CVRPPDTWProblemInstance(); … … 40 36 base.Interpret(data, problemInstance); 41 37 42 PDPTWData pdpData = data as PDPTWData;43 CVRPPDTWProblemInstance problem = problemInstance as CVRPPDTWProblemInstance;38 PDPTWData pdpData = (PDPTWData)data; 39 CVRPPDTWProblemInstance problem = (CVRPPDTWProblemInstance)problemInstance; 44 40 45 41 problem.PickupDeliveryLocation = new IntArray(pdpData.PickupDeliveryLocations);
Note: See TracChangeset
for help on using the changeset viewer.