Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (14 years ago)
Author:
swagner
Message:

Merged cloning refactoring branch back into trunk (#922)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Optimization.Operators/3.3/ChildrenCreator.cs

    r4068 r4722  
    2121
    2222using System;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Data;
     
    5354    }
    5455
     56    [StorableConstructor]
     57    private ChildrenCreator(bool deserializing) : base(deserializing) { }
     58    private ChildrenCreator(ChildrenCreator original, Cloner cloner) : base(original, cloner) { }
    5559    public ChildrenCreator()
    5660      : base() {
    5761      Parameters.Add(new ScopeParameter("CurrentScope", "The current scope whose sub-scopes represent the parents."));
    5862      Parameters.Add(new ValueLookupParameter<IntValue>("ParentsPerChild", "The number of parents that should be crossed per child. Note that some of the typical crossover operators require exactly two parents.", new IntValue(2)));
     63    }
     64
     65    public override IDeepCloneable Clone(Cloner cloner) {
     66      return new ChildrenCreator(this, cloner);
    5967    }
    6068
Note: See TracChangeset for help on using the changeset viewer.