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.RandomSearch/3.3/RandomSearchAlgorithm.cs

    r16453 r16462  
    3131using HeuristicLab.Optimization.Operators;
    3232using HeuristicLab.Parameters;
    33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     33using HEAL.Fossil;
    3434using HeuristicLab.Random;
    3535
     
    3737  [Item("Random Search Algorithm (RS)", "A random search algorithm.")]
    3838  [Creatable(CreatableAttribute.Categories.SingleSolutionAlgorithms, Priority = 150)]
    39   [StorableClass]
     39  [StorableType("51EFBCCE-00A7-4E97-8177-85774E71E681")]
    4040  public sealed class RandomSearchAlgorithm : HeuristicOptimizationEngineAlgorithm, IStorableContent {
    4141    public string Filename { get; set; }
     
    128128    #region Constructors
    129129    [StorableConstructor]
    130     private RandomSearchAlgorithm(bool deserializing)
    131       : base(deserializing) { }
     130    private RandomSearchAlgorithm(StorableConstructorFlag _) : base(_) { }
    132131    [StorableHook(HookType.AfterDeserialization)]
    133132    private void AfterDeserialization() {
Note: See TracChangeset for help on using the changeset viewer.