Changeset 5650
- Timestamp:
- 03/10/11 10:01:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Optimization/3.3/Algorithm.cs
r5615 r5650 224 224 public virtual void CollectResultValues(IDictionary<string, IItem> values) { 225 225 values.Add("Execution Time", new TimeSpanValue(ExecutionTime)); 226 foreach (IResult result in Results) 227 values.Add(result.Name, result.Value); 226 CollectResultsRecursively("", Results, values); 227 } 228 229 private void CollectResultsRecursively(string path, ResultCollection results, IDictionary<string, IItem> values) { 230 foreach (IResult result in results) { 231 values.Add(path + result.Name, result.Value); 232 ResultCollection childCollection = result.Value as ResultCollection; 233 if (childCollection != null) { 234 CollectResultsRecursively(path + result.Name + ".", childCollection, values); 235 } 236 } 228 237 } 229 238
Note: See TracChangeset
for help on using the changeset viewer.