Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (7 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

Location:
branches/PersistenceReintegration/HeuristicLab.Random/3.3
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Random/3.3/FastRandom.cs

    r8928 r14927  
    22using HeuristicLab.Common;
    33using HeuristicLab.Core;
    4 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     4using HeuristicLab.Persistence;
    55
    66namespace HeuristicLab.Random {
     
    4343  ///   
    4444  /// </summary>
    45   [StorableClass]
     45  [StorableType("1a0cccd9-9e4e-4788-ac31-b436f6eb1391")]
    4646  public sealed class FastRandom : Item, IRandom {
    4747    // The +1 ensures NextDouble doesn't generate 1.0
     
    214214      int i = 0;
    215215      uint t;
    216       for (int bound = buffer.Length - 3; i < bound; ) {
     216      for (int bound = buffer.Length - 3; i < bound;) {
    217217        // Generate 4 bytes.
    218218        // Increased performance is achieved by generating 4 random bytes per loop.
  • branches/PersistenceReintegration/HeuristicLab.Random/3.3/GammaDistributedRandom.cs

    r14407 r14927  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HeuristicLab.Persistence;
    2626using HeuristicLab.Random;
    2727
     
    3333  /// </summary>
    3434  [Item("GammaDistributedRandom", "A pseudo random number generator for gamma distributed random numbers.")]
    35   [StorableClass]
     35  [StorableType("b8c87b51-c7d6-4831-a1d5-19d95074e8a3")]
    3636  public sealed class GammaDistributedRandom : Item, IRandom {
    3737    [Storable]
  • branches/PersistenceReintegration/HeuristicLab.Random/3.3/MersenneTwister.cs

    r14185 r14927  
    3535using HeuristicLab.Common;
    3636using HeuristicLab.Core;
    37 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     37using HeuristicLab.Persistence;
    3838
    3939namespace HeuristicLab.Random {
     
    4242  /// </summary>
    4343  [Item("MersenneTwister", "A high-quality pseudo random number generator which creates uniformly distributed random numbers.")]
    44   [StorableClass]
     44  [StorableType("46866302-5a06-4c6e-9d2a-d446c71aa151")]
    4545  public sealed class MersenneTwister : Item, IRandom {
    4646    private const int n = 624, m = 397;
  • branches/PersistenceReintegration/HeuristicLab.Random/3.3/NormalDistributedRandom.cs

    r14185 r14927  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HeuristicLab.Persistence;
    2626
    2727namespace HeuristicLab.Random {
     
    3333  /// </summary>
    3434  [Item("NormalDistributedRandom", "A pseudo random number generator which uses the Ziggurat method to create normally distributed random numbers.")]
    35   [StorableClass]
     35  [StorableType("94fa7d63-a180-49e3-96d9-2f74ca895073")]
    3636  public sealed class NormalDistributedRandom : Item, IRandom {
    3737    [Storable]
  • branches/PersistenceReintegration/HeuristicLab.Random/3.3/NormalRandomizer.cs

    r14185 r14927  
    2525using HeuristicLab.Operators;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HeuristicLab.Persistence;
    2828
    2929namespace HeuristicLab.Random {
     
    3131  /// Normally distributed random number generator.
    3232  /// </summary>
    33   [StorableClass]
     33  [StorableType("873d8ec2-3099-4c5b-bb55-80454a07ce38")]
    3434  [Item("NormalRandomizer", "Initializes the value of variable 'Value' to a random value normally distributed with parameters 'Mu' and 'Sigma'")]
    3535  public class NormalRandomizer : SingleSuccessorOperator {
  • branches/PersistenceReintegration/HeuristicLab.Random/3.3/RandomCreator.cs

    r14185 r14927  
    2525using HeuristicLab.Operators;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HeuristicLab.Persistence;
    2828
    2929namespace HeuristicLab.Random {
     
    3232  /// </summary>
    3333  [Item("RandomCreator", "An operator which creates a new Mersenne Twister pseudo random number generator.")]
    34   [StorableClass]
     34  [StorableType("b0248fd0-d7e3-44e9-b2dd-a9cbfe9b8ece")]
    3535  public sealed class RandomCreator : SingleSuccessorOperator {
    3636    #region Parameter Properties
  • branches/PersistenceReintegration/HeuristicLab.Random/3.3/UniformDistributedRandom.cs

    r14185 r14927  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
    25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     25using HeuristicLab.Persistence;
    2626
    2727namespace HeuristicLab.Random {
     
    3131  /// </summary>
    3232  [Item("UniformDistributedRandom", "A pseudo random number generator to create uniform distributed random numbers.")]
    33   [StorableClass]
     33  [StorableType("4cd09e9d-171e-43cf-8906-d8c6f93d71b2")]
    3434  public sealed class UniformDistributedRandom : Item, IRandom {
    3535    [Storable]
  • branches/PersistenceReintegration/HeuristicLab.Random/3.3/UniformRandomizer.cs

    r14185 r14927  
    2525using HeuristicLab.Operators;
    2626using HeuristicLab.Parameters;
    27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HeuristicLab.Persistence;
    2828
    2929namespace HeuristicLab.Random {
     
    3131  /// Uniformly distributed random number generator.
    3232  /// </summary>
    33   [StorableClass]
     33  [StorableType("56d5dc8b-f0ba-49f1-bca1-2313a169ab71")]
    3434  [Item("UniformRandomizer", "Initializes the value of variable 'Value' to a random value uniformly distributed between 'Min' and 'Max'")]
    3535  public class UniformRandomizer : SingleSuccessorOperator {
Note: See TracChangeset for help on using the changeset viewer.