Free cookie consent management tool by TermsFeed Policy Generator

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

Merged cloning refactoring branch back into trunk (#922)

Location:
trunk/sources
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Algorithms.EvolutionStrategy/3.3/EvolutionStrategyMainLoop.cs

    r4068 r4722  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Data;
     
    9495
    9596    [StorableConstructor]
    96     private EvolutionStrategyMainLoop(bool deserializing) : base() { }
     97    private EvolutionStrategyMainLoop(bool deserializing) : base(deserializing) { }
     98    private EvolutionStrategyMainLoop(EvolutionStrategyMainLoop original, Cloner cloner)
     99      : base(original, cloner) {
     100    }
     101    public override IDeepCloneable Clone(Cloner cloner) {
     102      return new EvolutionStrategyMainLoop(this, cloner);
     103    }
    97104    public EvolutionStrategyMainLoop()
    98105      : base() {
  • trunk/sources/HeuristicLab.Algorithms.EvolutionStrategy/3.3/WithoutRepeatingBatchedRandomSelector.cs

    r4068 r4722  
    2222using System;
    2323using System.Collections.Generic;
     24using HeuristicLab.Common;
    2425using HeuristicLab.Core;
    2526using HeuristicLab.Data;
     
    4041    public IValueLookupParameter<IntValue> ParentsPerChildParameter {
    4142      get { return (IValueLookupParameter<IntValue>)Parameters["ParentsPerChild"]; }
     43    }
     44
     45    [StorableConstructor]
     46    protected WithoutRepeatingBatchedRandomSelector(bool deserializing) : base(deserializing) { }
     47    protected WithoutRepeatingBatchedRandomSelector(WithoutRepeatingBatchedRandomSelector original, Cloner cloner)
     48      : base(original, cloner) {
     49    }
     50    public override IDeepCloneable Clone(Cloner cloner) {
     51      return new WithoutRepeatingBatchedRandomSelector(this, cloner);
    4252    }
    4353
Note: See TracChangeset for help on using the changeset viewer.