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/Jobs/JobList.cs

    r4424 r4755  
    2424using HeuristicLab.Hive.JobBase;
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HeuristicLab.Common;
    2627
    2728namespace HeuristicLab.Hive.Experiment.Jobs {
     
    3334    public JobList(IEnumerable<IJob> collection) : base(collection) { }
    3435
    35     public override Common.IDeepCloneable Clone(Common.Cloner cloner) {
    36       HiveJobList clone = (HiveJobList)base.Clone(cloner);
    37       return clone;
     36    [StorableConstructor]
     37    protected JobList(bool deserializing) : base(deserializing) { }
     38    protected JobList(JobList original, Cloner cloner)
     39      : base(original, cloner) {
     40    }
     41    public override IDeepCloneable Clone(Cloner cloner) {
     42      return new JobList(this, cloner);
    3843    }
    3944  }
Note: See TracChangeset for help on using the changeset viewer.