Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/04/11 21:34:45 (13 years ago)
Author:
abeham
Message:

#852

  • Made public properties that redirect to ActualValue.Value private or protected
  • Sealed all of the specific operators
  • Removed files that are present in the repository, but are not included in the project
  • Removed .sln file (is this still needed?)
  • Added license headers to some files
  • Unified the pattern for writing the constructors similar to other files in the trunk
  • Corrected assembly and plugin version from 3.3.0.x to 3.3.2.x
  • Fixed the wiring in the VelocityBoundsModifier
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.ParticleSwarmOptimization/3.3/ParticleSwarmOptimization.cs

    r5418 r5435  
    3434using HeuristicLab.PluginInfrastructure;
    3535using HeuristicLab.Random;
    36 using System.Collections.Generic;
    3736
    3837namespace HeuristicLab.Algorithms.ParticleSwarmOptimization {
    39 
    4038  [Item("Particle Swarm Optimization", "A particle swarm optimization algorithm based on the description in Pedersen, M.E.H. (2010). PhD thesis. University of Southampton.")]
    4139  [Creatable("Algorithms")]
    4240  [StorableClass]
    43   public class ParticleSwarmOptimization : EngineAlgorithm, IStorableContent {
     41  public sealed class ParticleSwarmOptimization : EngineAlgorithm, IStorableContent {
    4442
    4543    #region Problem Properties
     
    135133
    136134    [StorableConstructor]
    137     protected ParticleSwarmOptimization(bool deserializing)
    138       : base(deserializing) {
    139     }
    140     protected ParticleSwarmOptimization(ParticleSwarmOptimization original, Cloner cloner)
     135    private ParticleSwarmOptimization(bool deserializing) : base(deserializing) { }
     136    private ParticleSwarmOptimization(ParticleSwarmOptimization original, Cloner cloner)
    141137      : base(original, cloner) {
    142138      qualityAnalyzer = cloner.Clone(original.qualityAnalyzer);
    143139      Initialize();
    144140    }
    145 
    146     [StorableHook(HookType.AfterDeserialization)]
    147     private void AfterDeserialization() {
    148       Initialize();
    149     }
    150 
    151141    public ParticleSwarmOptimization()
    152142      : base() {
     
    288278    }
    289279
     280    [StorableHook(HookType.AfterDeserialization)]
     281    private void AfterDeserialization() {
     282      Initialize();
     283    }
     284
    290285    public override void Prepare() {
    291286      if (Problem != null) {
Note: See TracChangeset for help on using the changeset viewer.