Changeset 2908 for trunk/sources/HeuristicLab.Operators
- Timestamp:
- 03/02/10 05:27:12 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/ResultsCollector.cs
r2882 r2908 26 26 namespace HeuristicLab.Operators { 27 27 /// <summary> 28 /// An operator which collects the actual values of parameters and clones them into a collection of variables.28 /// An operator which collects the actual values of parameters and adds them to a collection of variables. 29 29 /// </summary> 30 [Item("ResultsCollector", "An operator which collects the actual values of parameters and clones them into a collection of variables.")]30 [Item("ResultsCollector", "An operator which collects the actual values of parameters and adds them to a collection of variables.")] 31 31 [Creatable("Test")] 32 32 [EmptyStorableClass] … … 47 47 results.TryGetValue(param.Name, out var); 48 48 if (var != null) 49 var.Value = (IItem)param.ActualValue .Clone();49 var.Value = (IItem)param.ActualValue; 50 50 else 51 results.Add(new Variable(param.Name, (IItem)param.ActualValue.Clone()));51 results.Add(new Variable(param.Name, param.ActualValue)); 52 52 } 53 53 return base.Apply();
Note: See TracChangeset
for help on using the changeset viewer.