Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/02/08 21:10:17 (16 years ago)
Author:
gkronber
Message:

Refactored cloning in all plugins except: HL.Communication, HL.Hive, HL.GP, HL.Routing, HL.Scheduling, HL.SimOpt, HL.Visualization

#285 (Cloning could be improved by creating objects at the bottom of the cloning chain with 'new' instead of the top with Activator.CreateInstance())

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactorBranch/HeuristicLab.Operators/DelegatingOperator.cs

    r801 r887  
    3131  /// </summary>
    3232  public abstract class DelegatingOperator : OperatorBase {
     33
     34    /// <summary>
     35    ///  Default constructor for DelegatingOperator
     36    /// </summary>
     37    public DelegatingOperator() { }
     38
     39    public DelegatingOperator(DelegatingOperator original, IDictionary<Guid, object> clonedObjects)
     40      : base(original, clonedObjects) { }
     41
    3342    /// <summary>
    3443    /// Executes the specified operator in the given <paramref name="scope"/>.
     
    4251      myCanceled = false;
    4352
    44       if(scope.GetVariable(Guid.ToString()) == null) { // contained operator not yet executed
     53      if (scope.GetVariable(Guid.ToString()) == null) { // contained operator not yet executed
    4554        // add marker
    4655        scope.AddVariable(new Variable(Guid.ToString(), new NullData()));
Note: See TracChangeset for help on using the changeset viewer.