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

    r8649 r9010  
    2828
    2929namespace HeuristicLab.Problems.VehicleRouting.Interpreters {
    30   public class MDCVRPTWInterpreter : MDCVRPInterpreter, IVRPDataInterpreter<MDCVRPTWData> {
    31     public override Type GetDataType() {
    32       return typeof(MDCVRPTWData);
    33     }
    34    
     30  public class MDCVRPTWInterpreter : MDCVRPInterpreter, IVRPDataInterpreter<MDCVRPTWData> {   
    3531    protected override IVRPProblemInstance CreateProblemInstance() {
    3632      return new MDCVRPTWProblemInstance();
     
    4036      base.Interpret(data, problemInstance);
    4137
    42       MDCVRPTWData cvrptwData = data as MDCVRPTWData;
    43       MDCVRPTWProblemInstance problem = problemInstance as MDCVRPTWProblemInstance;
     38      MDCVRPTWData cvrptwData = (MDCVRPTWData)data;
     39      MDCVRPTWProblemInstance problem = (MDCVRPTWProblemInstance)problemInstance;
    4440
    4541      problem.ReadyTime = new DoubleArray(cvrptwData.ReadyTimes);
Note: See TracChangeset for help on using the changeset viewer.