Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9838


Ignore:
Timestamp:
08/01/13 15:26:40 (11 years ago)
Author:
abeham
Message:

#1833: changed parameter collection for runs, so that the "checked" information is available.

Location:
trunk/sources/HeuristicLab.Operators/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators/3.3/CheckedMultiOperator.cs

    r9456 r9838  
    2020#endregion
    2121
     22using System.Collections.Generic;
    2223using HeuristicLab.Common;
    2324using HeuristicLab.Core;
     25using HeuristicLab.Data;
    2426using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2527
     
    5153      Operators = new CheckedItemList<T>();
    5254    }
     55
     56    public override void CollectParameterValues(IDictionary<string, IItem> values) {
     57      base.CollectParameterValues(values);
     58      foreach (var opParam in OperatorParameters) {
     59        var op = opParam.Value;
     60        var @checked = Operators.ItemChecked(op);
     61        values.Add(opParam.Name + ".Checked", new BoolValue(@checked));
     62      }
     63    }
    5364  }
    5465}
  • trunk/sources/HeuristicLab.Operators/3.3/MultiOperator.cs

    r9456 r9838  
    2020#endregion
    2121
     22using System;
     23using System.Collections.Generic;
    2224using HeuristicLab.Collections;
    2325using HeuristicLab.Common;
     
    2527using HeuristicLab.Parameters;
    2628using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    27 using System;
    28 using System.Collections.Generic;
    2929
    3030namespace HeuristicLab.Operators {
     
    3636  public abstract class MultiOperator<T> : SingleSuccessorOperator, IMultiOperator<T> where T : class, IOperator {
    3737    private List<IValueParameter<T>> operatorParameters;
     38    protected IEnumerable<IValueParameter<T>> OperatorParameters { get { return operatorParameters; } }
    3839
    3940    [Storable]
Note: See TracChangeset for help on using the changeset viewer.