Changeset 7211


Ignore:
Timestamp:
12/20/11 11:23:33 (11 years ago)
Author:
epitzer
Message:

#1696: Make ResultNamesCollector return a CheckedItemCollection instead of individual results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/BoxChart/ResultNamesCollector.cs

    r7208 r7211  
    4040      }
    4141      var newRun = new Run();
    42       foreach (var name in resultNames)
    43         newRun.Results.Add(name, new StringValue(name));
    44       foreach (var name in parameterNames)
    45         newRun.Parameters.Add(name, new StringValue(name));
     42      newRun.Results.Add("Result Names",
     43        new CheckedItemCollection<StringValue>(resultNames.Select(r => new StringValue(r))));
     44      newRun.Parameters.Add("Parameter Names",
     45        new CheckedItemCollection<StringValue>(parameterNames.Select(p => new StringValue(p))));
    4646      runs.Add(newRun);
    4747    }
Note: See TracChangeset for help on using the changeset viewer.