Free cookie consent management tool by TermsFeed Policy Generator

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

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

  • fixed naming issues in DataTableValuesCollector, ResultsCollector and VariableCreator
File:
1 edited

Legend:

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

    r3664 r3687  
    5959        IItem value = param.ActualValue;
    6060        if (value != null) {
    61           results.TryGetValue(param.Name, out result);
     61          ILookupParameter lookupParam = param as ILookupParameter;
     62          string name = lookupParam != null ? lookupParam.TranslatedName : param.Name;
     63
     64          results.TryGetValue(name, out result);
    6265          if (result != null)
    6366            result.Value = copy ? (IItem)value.Clone() : value;
    6467          else
    65             results.Add(new Result(param.Name, param.Description, copy ? (IItem)value.Clone() : value));
     68            results.Add(new Result(name, param.Description, copy ? (IItem)value.Clone() : value));
    6669        }
    6770      }
Note: See TracChangeset for help on using the changeset viewer.