Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/28/18 16:10:48 (6 years ago)
Author:
jkarder
Message:

#2520: worked on reintegration of new persistence

  • added nuget references to HEAL.Fossil
  • added StorableType attributes to many classes
  • changed signature of StorableConstructors
  • removed some classes in old persistence
  • removed some unnecessary usings
Location:
branches/2520_PersistenceReintegration/HeuristicLab.Optimization/3.3/MetaOptimizers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Optimization/3.3/MetaOptimizers/BatchRun.cs

    r16453 r16462  
    2929using HeuristicLab.Core;
    3030using HeuristicLab.Data;
    31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     31using HEAL.Fossil;
    3232
    3333namespace HeuristicLab.Optimization {
     
    3939  [Item("Batch Run", "A run in which an optimizer is executed a given number of times.")]
    4040  [Creatable(CreatableAttribute.Categories.TestingAndAnalysis, Priority = 110)]
    41   [StorableClass]
     41  [StorableType("E85407E0-18EC-4198-8321-9CF030FDF6D7")]
    4242  public sealed class BatchRun : NamedItem, IOptimizer, IStorableContent {
    4343    public string Filename { get; set; }
     
    199199    }
    200200    [StorableConstructor]
    201     private BatchRun(bool deserializing) : base(deserializing) { }
     201    private BatchRun(StorableConstructorFlag _) : base(_) { }
    202202    [StorableHook(HookType.AfterDeserialization)]
    203203    private void AfterDeserialization() {
  • branches/2520_PersistenceReintegration/HeuristicLab.Optimization/3.3/MetaOptimizers/Experiment.cs

    r16453 r16462  
    2929using HeuristicLab.Common;
    3030using HeuristicLab.Core;
    31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     31using HEAL.Fossil;
    3232
    3333namespace HeuristicLab.Optimization {
     
    3737  [Item("Experiment", "An experiment which contains multiple algorithms, batch runs or other experiments.")]
    3838  [Creatable(CreatableAttribute.Categories.TestingAndAnalysis, Priority = 100)]
    39   [StorableClass]
     39  [StorableType("A8A4536B-54C1-4A17-AB58-A6006F7F394B")]
    4040  public sealed class Experiment : NamedItem, IOptimizer, IStorableContent {
    4141    public string Filename { get; set; }
     
    161161    }
    162162    [StorableConstructor]
    163     private Experiment(bool deserializing) : base(deserializing) { }
     163    private Experiment(StorableConstructorFlag _) : base(_) { }
    164164    [StorableHook(HookType.AfterDeserialization)]
    165165    private void AfterDeserialization() {
  • branches/2520_PersistenceReintegration/HeuristicLab.Optimization/3.3/MetaOptimizers/TimeLimitRun.cs

    r16453 r16462  
    3131using HeuristicLab.Common.Resources;
    3232using HeuristicLab.Core;
    33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     33using HEAL.Fossil;
    3434
    3535namespace HeuristicLab.Optimization {
     
    3939  [Item("Timelimit Run", "A run in which an optimizer is executed a certain maximum time.")]
    4040  [Creatable(CreatableAttribute.Categories.TestingAndAnalysis, Priority = 115)]
    41   [StorableClass]
     41  [StorableType("85A1AB82-689F-4925-B888-B3886707BE88")]
    4242  public sealed class TimeLimitRun : NamedItem, IOptimizer, IStorableContent, INotifyPropertyChanged {
    4343    public string Filename { get; set; }
     
    152152
    153153    [StorableConstructor]
    154     private TimeLimitRun(bool deserializing) : base(deserializing) { }
     154    private TimeLimitRun(StorableConstructorFlag _) : base(_) { }
    155155    private TimeLimitRun(TimeLimitRun original, Cloner cloner)
    156156      : base(original, cloner) {
Note: See TracChangeset for help on using the changeset viewer.