Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/06/12 16:18:16 (12 years ago)
Author:
svonolfe
Message:

used explicit conversions in Interpreters and removed the unused method IVRPDataInterpreter.GetDataType (#1953)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.4/Interpreters/PDPTWInterpreter.cs

    r8649 r9010  
    2828
    2929namespace 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> {   
    3531    protected override IVRPProblemInstance CreateProblemInstance() {
    3632      return new CVRPPDTWProblemInstance();
     
    4036      base.Interpret(data, problemInstance);
    4137
    42       PDPTWData pdpData = data as PDPTWData;
    43       CVRPPDTWProblemInstance problem = problemInstance as CVRPPDTWProblemInstance;
     38      PDPTWData pdpData = (PDPTWData)data;
     39      CVRPPDTWProblemInstance problem = (CVRPPDTWProblemInstance)problemInstance;
    4440
    4541      problem.PickupDeliveryLocation = new IntArray(pdpData.PickupDeliveryLocations);
Note: See TracChangeset for help on using the changeset viewer.