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.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourModel.cs

    r16453 r16462  
    2525using HeuristicLab.Common;
    2626using HeuristicLab.Core;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HEAL.Fossil;
    2828using HeuristicLab.Problems.DataAnalysis;
    2929
     
    3232  /// Represents a nearest neighbour model for regression and classification
    3333  /// </summary>
    34   [StorableClass]
     34  [StorableType("A76C0823-3077-4ACE-8A40-E9B717C7DB60")]
    3535  [Item("NearestNeighbourModel", "Represents a nearest neighbour model for regression and classification.")]
    3636  public sealed class NearestNeighbourModel : ClassificationModel, INearestNeighbourModel {
     
    6666
    6767    [StorableConstructor]
    68     private NearestNeighbourModel(bool deserializing)
    69       : base(deserializing) {
    70       if (deserializing)
    71         kdTree = new alglib.nearestneighbor.kdtree();
     68    private NearestNeighbourModel(StorableConstructorFlag _) : base(_) {
     69      kdTree = new alglib.nearestneighbor.kdtree();
    7270    }
    7371    private NearestNeighbourModel(NearestNeighbourModel original, Cloner cloner)
Note: See TracChangeset for help on using the changeset viewer.