Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/23/14 12:33:27 (10 years ago)
Author:
ehopf
Message:

#2278: Changed the used collect results values method to the new method in the Algorithm-class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Classification-Extensions/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs

    r11171 r11719  
    227227    public virtual void CollectResultValues(IDictionary<string, IItem> values) {
    228228      values.Add("Execution Time", new TimeSpanValue(ExecutionTime));
    229       CollectResultsRecursively("", Results, values);
    230     }
    231 
    232     private void CollectResultsRecursively(string path, ResultCollection results, IDictionary<string, IItem> values) {
    233       foreach (IResult result in results) {
    234         values.Add(path + result.Name, result.Value);
    235         ResultCollection childCollection = result.Value as ResultCollection;
    236         if (childCollection != null) {
    237           CollectResultsRecursively(path + result.Name + ".", childCollection, values);
    238         }
    239       }
     229      CollectResultValues(values);
    240230    }
    241231
Note: See TracChangeset for help on using the changeset viewer.