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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2520_PersistenceReintegration/HeuristicLab.Algorithms.Benchmarks/3.3/BenchmarkAlgorithm.cs

    r16453 r16462  
    3232using HeuristicLab.Optimization;
    3333using HeuristicLab.Parameters;
    34 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     34using HEAL.Fossil;
    3535using HeuristicLab.PluginInfrastructure;
    3636
     
    3838  [Item("Benchmark Algorithm", "An algorithm to execute performance benchmarks (Linpack, Dhrystone, Whetstone, etc.).")]
    3939  [Creatable(CreatableAttribute.Categories.TestingAndAnalysis, Priority = 130)]
    40   [StorableClass]
     40  [StorableType("8E76490C-E5DA-4F09-8E94-10009FC4124D")]
    4141  public sealed class BenchmarkAlgorithm : IAlgorithm, IStorableContent {
    4242    private CancellationTokenSource cancellationTokenSource;
     
    217217    #region Constructors
    218218    [StorableConstructor]
    219     private BenchmarkAlgorithm(bool deserializing) { }
     219    private BenchmarkAlgorithm(StorableConstructorFlag _) { }
    220220    private BenchmarkAlgorithm(BenchmarkAlgorithm original, Cloner cloner) {
    221221      if (original.ExecutionState == ExecutionState.Started) throw new InvalidOperationException(string.Format("Clone not allowed in execution state \"{0}\".", ExecutionState));
Note: See TracChangeset for help on using the changeset viewer.