Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/02/10 05:27:12 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on analysis
File:
1 edited

Legend:

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

    r2882 r2908  
    2626namespace HeuristicLab.Operators {
    2727  /// <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.
    2929  /// </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.")]
    3131  [Creatable("Test")]
    3232  [EmptyStorableClass]
     
    4747        results.TryGetValue(param.Name, out var);
    4848        if (var != null)
    49           var.Value = (IItem)param.ActualValue.Clone();
     49          var.Value = (IItem)param.ActualValue;
    5050        else
    51           results.Add(new Variable(param.Name, (IItem)param.ActualValue.Clone()));
     51          results.Add(new Variable(param.Name, param.ActualValue));
    5252      }
    5353      return base.Apply();
Note: See TracChangeset for help on using the changeset viewer.