Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/06/10 23:34:36 (15 years ago)
Author:
swagner
Message:

Worked on refactoring of algorithm analysis and tracing (#999)

  • fixed naming issues in DataTableValuesCollector, ResultsCollector and VariableCreator
Location:
trunk/sources/HeuristicLab.Operators/3.3
Files:
2 edited

Legend:

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

    r3659 r3687  
    5858    public override IOperation Apply() {
    5959      descending = DescendingParameter.ActualValue.Value;
    60       actualName = LookupParameter<ItemArray<DoubleValue>>.TranslateName(ValueParameter.Name, ExecutionContext);
     60      actualName = ValueParameter.TranslatedName;
    6161      CurrentScope.SubScopes.Sort(SortScopes);
    6262      return base.Apply();
  • trunk/sources/HeuristicLab.Operators/3.3/VariableCreator.cs

    r3503 r3687  
    4747      IVariable var;
    4848      foreach (IParameter param in CollectedValues) {
    49         CurrentScope.Variables.TryGetValue(param.Name, out var);
     49        ILookupParameter lookupParam = param as ILookupParameter;
     50        string name = lookupParam != null ? lookupParam.TranslatedName : param.Name;
     51
     52        CurrentScope.Variables.TryGetValue(name, out var);
    5053        IItem value = param.ActualValue;
    5154        if (var != null)
    5255          var.Value = value == null ? null : (IItem)value.Clone();
    5356        else
    54           CurrentScope.Variables.Add(new Variable(param.Name, param.Description, value == null ? null : (IItem)value.Clone()));
     57          CurrentScope.Variables.Add(new Variable(name, param.Description, value == null ? null : (IItem)value.Clone()));
    5558      }
    5659      return base.Apply();
Note: See TracChangeset for help on using the changeset viewer.