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

    r16453 r16462  
    2121
    2222using System;
    23 using System.Collections.Generic;
    2423using System.Linq;
    2524using HeuristicLab.Analysis;
     
    3130using HeuristicLab.Optimization.Operators;
    3231using HeuristicLab.Parameters;
    33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     32using HEAL.Fossil;
    3433using HeuristicLab.PluginInfrastructure;
    3534using HeuristicLab.Random;
     
    3837  [Item("Particle Swarm Optimization (PSO)", "A particle swarm optimization algorithm based on Standard PSO (SPSO) as described in Clerc, M. (2012). Standard particle swarm optimisation.")]
    3938  [Creatable(CreatableAttribute.Categories.PopulationBasedAlgorithms, Priority = 300)]
    40   [StorableClass]
     39  [StorableType("068A0951-B08D-41D3-A142-BA345D0AD47E")]
    4140  public sealed class ParticleSwarmOptimization : HeuristicOptimizationEngineAlgorithm, IStorableContent {
    4241    #region Parameter Properties
     
    165164
    166165    [StorableConstructor]
    167     private ParticleSwarmOptimization(bool deserializing) : base(deserializing) { }
     166    private ParticleSwarmOptimization(StorableConstructorFlag _) : base(_) { }
    168167    private ParticleSwarmOptimization(ParticleSwarmOptimization original, Cloner cloner)
    169168      : base(original, cloner) {
Note: See TracChangeset for help on using the changeset viewer.