Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/28/18 16:10:48 (5 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.SimulatedAnnealing/3.3/SimulatedAnnealing.cs

    r16453 r16462  
    3131using HeuristicLab.Optimization.Operators;
    3232using HeuristicLab.Parameters;
    33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     33using HEAL.Fossil;
    3434using HeuristicLab.PluginInfrastructure;
    3535using HeuristicLab.Random;
     
    3838  [Item("Simulated Annealing (SA)", "A simulated annealing algorithm.")]
    3939  [Creatable(CreatableAttribute.Categories.SingleSolutionAlgorithms, Priority = 140)]
    40   [StorableClass]
     40  [StorableType("CE2B6164-C541-4E87-ABF6-FDE6CA6401BF")]
    4141  public sealed class SimulatedAnnealing : HeuristicOptimizationEngineAlgorithm, IStorableContent {
    4242    public string Filename { get; set; }
     
    149149
    150150    [StorableConstructor]
    151     private SimulatedAnnealing(bool deserializing) : base(deserializing) { }
     151    private SimulatedAnnealing(StorableConstructorFlag _) : base(_) { }
    152152    [StorableHook(HookType.AfterDeserialization)]
    153153    private void AfterDeserialization() {
Note: See TracChangeset for help on using the changeset viewer.