Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/14/12 09:37:26 (13 years ago)
Author:
ascheibe
Message:

#1177 adapted VRP branch to changes of r7999

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs

    r7958 r8003  
    110110
    111111    [Storable]
    112     private List<IOperator> operators;
    113 
    114     public IEnumerable<IOperator> Operators {
     112    private List<IItem> operators;
     113
     114    public IEnumerable<IItem> Operators {
    115115      get { return operators; }
    116116    }
     
    131131      EvaluatorParameter.Hidden = true;
    132132
    133       operators = new List<IOperator>();
     133      operators = new List<IItem>();
    134134
    135135      InitializeRandomVRPInstance();
     
    147147    private VehicleRoutingProblem(VehicleRoutingProblem original, Cloner cloner)
    148148      : base(original, cloner) {
    149       this.operators = original.operators.Select(x => (IOperator)cloner.Clone(x)).ToList();
     149      this.operators = original.operators.Select(x => (IItem)cloner.Clone(x)).ToList();
    150150      this.AttachEventHandlers();
    151151    }
     
    254254
    255255    private void InitializeOperators() {
    256       operators = new List<IOperator>();
     256      operators = new List<IItem>();
    257257
    258258      if (ProblemInstance != null) {
     
    267267    private void ParameterizeSolutionCreator() {
    268268      if (SolutionCreator is IMultiVRPOperator) {
    269         (SolutionCreator as IMultiVRPOperator).SetOperators(Operators);
     269        (SolutionCreator as IMultiVRPOperator).SetOperators(Operators.OfType<IOperator>());
    270270      }
    271271    }
     
    274274      foreach (IOperator op in Operators) {
    275275        if (op is IMultiVRPOperator) {
    276           (op as IMultiVRPOperator).SetOperators(Operators);
     276          (op as IMultiVRPOperator).SetOperators(Operators.OfType<IOperator>());
    277277        }
    278278      }
Note: See TracChangeset for help on using the changeset viewer.