Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/09/10 15:18:53 (13 years ago)
Author:
cneumuel
Message:

#1260

  • applied new cloning mechanism
  • changed role names
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment/3.3/HiveJobList.cs

    r4750 r4755  
    2323using HeuristicLab.Core;
    2424using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HeuristicLab.Common;
    2526
    2627namespace HeuristicLab.Hive.Experiment {
     
    3233    public HiveJobList(IEnumerable<HiveJob> collection) : base(collection) { }
    3334
    34     public override Common.IDeepCloneable Clone(Common.Cloner cloner) {
    35       HiveJobList clone = (HiveJobList)base.Clone(cloner);
    36       return clone;
     35    [StorableConstructor]
     36    protected HiveJobList(bool deserializing) : base(deserializing) { }
     37    protected HiveJobList(HiveJobList original, Cloner cloner)
     38      : base(original, cloner) {
     39    }
     40    public override IDeepCloneable Clone(Cloner cloner) {
     41      return new HiveJobList(this, cloner);
    3742    }
    3843  }
Note: See TracChangeset for help on using the changeset viewer.