Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/12/13 12:20:25 (12 years ago)
Author:
sforsten
Message:

#2018:

  • added column names to the ValueTypeArray and StringArray
  • added batch update methods to IStringConvertibleArray similar to methods in IStringConvertibleMatrix
Location:
branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.VehicleRouting
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.VehicleRouting/3.3/VehicleRoutingProblem.cs

    r9306 r9308  
    297297    }
    298298    void DemandParameter_ValueChanged(object sender, EventArgs e) {
    299       Demand.ItemChanged += new EventHandler<EventArgs<int>>(Demand_ItemChanged);
     299      Demand.ItemsChanged += new EventHandler<ArrayValuesChangedEventArgs>(Demand_ItemChanged);
    300300      Demand.Reset += new EventHandler(Demand_Reset);
    301301      BestKnownSolution = null;
     
    304304      BestKnownSolution = null;
    305305    }
    306     void Demand_ItemChanged(object sender, EventArgs<int> e) {
     306    void Demand_ItemChanged(object sender, ArrayValuesChangedEventArgs e) {
    307307      BestKnownSolution = null;
    308308    }
    309309    void DueTimeParameter_ValueChanged(object sender, EventArgs e) {
    310       DueTime.ItemChanged += new EventHandler<EventArgs<int>>(DueTime_ItemChanged);
     310      DueTime.ItemsChanged += new EventHandler<ArrayValuesChangedEventArgs>(DueTime_ItemChanged);
    311311      DueTime.Reset += new EventHandler(DueTime_Reset);
    312312      BestKnownSolution = null;
     
    315315      BestKnownSolution = null;
    316316    }
    317     void DueTime_ItemChanged(object sender, EventArgs<int> e) {
     317    void DueTime_ItemChanged(object sender, ArrayValuesChangedEventArgs e) {
    318318      BestKnownSolution = null;
    319319    }
    320320    void ReadyTimeParameter_ValueChanged(object sender, EventArgs e) {
    321       ReadyTime.ItemChanged += new EventHandler<EventArgs<int>>(ReadyTime_ItemChanged);
     321      ReadyTime.ItemsChanged += new EventHandler<ArrayValuesChangedEventArgs>(ReadyTime_ItemChanged);
    322322      ReadyTime.Reset += new EventHandler(ReadyTime_Reset);
    323323      BestKnownSolution = null;
     
    326326      BestKnownSolution = null;
    327327    }
    328     void ReadyTime_ItemChanged(object sender, EventArgs<int> e) {
     328    void ReadyTime_ItemChanged(object sender, ArrayValuesChangedEventArgs e) {
    329329      BestKnownSolution = null;
    330330    }
    331331    void ServiceTimeParameter_ValueChanged(object sender, EventArgs e) {
    332       ServiceTime.ItemChanged += new EventHandler<EventArgs<int>>(ServiceTime_ItemChanged);
     332      ServiceTime.ItemsChanged += new EventHandler<ArrayValuesChangedEventArgs>(ServiceTime_ItemChanged);
    333333      ServiceTime.Reset += new EventHandler(ServiceTime_Reset);
    334334      BestKnownSolution = null;
     
    337337      BestKnownSolution = null;
    338338    }
    339     void ServiceTime_ItemChanged(object sender, EventArgs<int> e) {
     339    void ServiceTime_ItemChanged(object sender, ArrayValuesChangedEventArgs e) {
    340340      BestKnownSolution = null;
    341341    }
     
    392392      Capacity.ValueChanged += new EventHandler(Capacity_ValueChanged);
    393393      DemandParameter.ValueChanged += new EventHandler(DemandParameter_ValueChanged);
    394       Demand.ItemChanged += new EventHandler<EventArgs<int>>(Demand_ItemChanged);
     394      Demand.ItemsChanged += new EventHandler<ArrayValuesChangedEventArgs>(Demand_ItemChanged);
    395395      Demand.Reset += new EventHandler(Demand_Reset);
    396396      DueTimeParameter.ValueChanged += new EventHandler(DueTimeParameter_ValueChanged);
    397       DueTime.ItemChanged += new EventHandler<EventArgs<int>>(DueTime_ItemChanged);
     397      DueTime.ItemsChanged += new EventHandler<ArrayValuesChangedEventArgs>(DueTime_ItemChanged);
    398398      DueTime.Reset += new EventHandler(DueTime_Reset);
    399399      ReadyTimeParameter.ValueChanged += new EventHandler(ReadyTimeParameter_ValueChanged);
    400       ReadyTime.ItemChanged += new EventHandler<EventArgs<int>>(ReadyTime_ItemChanged);
     400      ReadyTime.ItemsChanged += new EventHandler<ArrayValuesChangedEventArgs>(ReadyTime_ItemChanged);
    401401      ReadyTime.Reset += new EventHandler(ReadyTime_Reset);
    402402      ServiceTimeParameter.ValueChanged += new EventHandler(ServiceTimeParameter_ValueChanged);
    403       ServiceTime.ItemChanged += new EventHandler<EventArgs<int>>(ServiceTime_ItemChanged);
     403      ServiceTime.ItemsChanged += new EventHandler<ArrayValuesChangedEventArgs>(ServiceTime_ItemChanged);
    404404      ServiceTime.Reset += new EventHandler(ServiceTime_Reset);
    405405      VehiclesParameter.ValueChanged += new EventHandler(VehiclesParameter_ValueChanged);
  • branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/MultiDepotVRP/MDCVRP/MDCVRPTW/MDCVRPPDTW/MDCVRPPDTWProblemInstance.cs

    r8053 r9308  
    125125    #region Event handlers
    126126    void PickupDeliveryLocationParameter_ValueChanged(object sender, EventArgs e) {
    127       PickupDeliveryLocationParameter.Value.ItemChanged += new EventHandler<EventArgs<int>>(Value_ItemChanged);
     127      PickupDeliveryLocationParameter.Value.ItemsChanged += new EventHandler<ArrayValuesChangedEventArgs>(Value_ItemChanged);
    128128      EvalBestKnownSolution();
    129129    }
    130130
    131     void Value_ItemChanged(object sender, EventArgs<int> e) {
     131    void Value_ItemChanged(object sender, ArrayValuesChangedEventArgs e) {
    132132      EvalBestKnownSolution();
    133133    }
  • branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.VehicleRouting/3.4/ProblemInstances/SingleDepotVRP/CVRP/CVRPTW/CVRPPDTW/CVRPPDTWProblemInstance.cs

    r8053 r9308  
    125125    #region Event handlers
    126126    void PickupDeliveryLocationParameter_ValueChanged(object sender, EventArgs e) {
    127       PickupDeliveryLocationParameter.Value.ItemChanged += new EventHandler<EventArgs<int>>(Value_ItemChanged);
     127      PickupDeliveryLocationParameter.Value.ItemsChanged += new EventHandler<ArrayValuesChangedEventArgs>(Value_ItemChanged);
    128128      EvalBestKnownSolution();
    129129    }
    130130
    131     void Value_ItemChanged(object sender, EventArgs<int> e) {
     131    void Value_ItemChanged(object sender, ArrayValuesChangedEventArgs e) {
    132132      EvalBestKnownSolution();
    133133    }
Note: See TracChangeset for help on using the changeset viewer.