Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/14/10 05:31:49 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • worked on operators
Location:
trunk/sources/HeuristicLab.Random/3.3
Files:
4 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Random/3.3/HeuristicLab.Random-3.3.csproj

    r2773 r2794  
    8686  <ItemGroup>
    8787    <None Include="HeuristicLabRandomPlugin.cs.frame" />
    88     <Compile Include="RandomInitializer.cs" />
    8988    <Compile Include="HeuristicLabRandomPlugin.cs" />
    9089    <Compile Include="MersenneTwister.cs">
     
    9594    </Compile>
    9695    <Compile Include="Properties\AssemblyInfo.cs" />
     96    <Compile Include="RandomCreator.cs" />
    9797  </ItemGroup>
    9898  <ItemGroup>
  • trunk/sources/HeuristicLab.Random/3.3/HeuristicLabRandomPlugin.cs.frame

    r2790 r2794  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Text;
    2522using HeuristicLab.PluginInfrastructure;
    2623
  • trunk/sources/HeuristicLab.Random/3.3/MersenneTwister.cs

    r2790 r2794  
    3333
    3434using System;
    35 using System.Collections.Generic;
    36 using System.Text;
    37 using System.Xml;
    3835using HeuristicLab.Core;
    3936using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
  • trunk/sources/HeuristicLab.Random/3.3/NormalDistributedRandom.cs

    r2790 r2794  
    2121
    2222using System;
    23 using System.Collections.Generic;
    24 using System.Text;
    25 using System.Xml;
    26 using System.Globalization;
    2723using HeuristicLab.Core;
    2824using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
  • trunk/sources/HeuristicLab.Random/3.3/RandomCreator.cs

    r2792 r2794  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Text;
    2522using HeuristicLab.Core;
    2623using HeuristicLab.Data;
     
    3128namespace HeuristicLab.Operators {
    3229  /// <summary>
    33   /// An operator which initializes a pseudo random number generator.
     30  /// An operator which creates a new pseudo random number generator.
    3431  /// </summary>
    35   [Item("RandomInitializer", "An operator which initializes a pseudo random number generator.")]
     32  [Item("RandomCreator", "An operator which creates a new pseudo random number generator.")]
    3633  [EmptyStorableClass]
    3734  [Creatable("Test")]
    38   public sealed class RandomInitializer : SingleSuccessorOperator {
     35  public sealed class RandomCreator : SingleSuccessorOperator {
    3936    public ValueLookupParameter<BoolData> SetSeedRandomlyParameter {
    4037      get { return (ValueLookupParameter<BoolData>)Parameters["SetSeedRandomly"]; }
     
    5552    }
    5653
    57     public RandomInitializer()
     54    public RandomCreator()
    5855      : base() {
    5956      Parameters.Add(new ValueLookupParameter<BoolData>("SetSeedRandomly", "True if the random seed should be set to a random value, otherwise false.", new BoolData(true)));
    60       Parameters.Add(new ValueLookupParameter<IntData>("Seed", "The random seed used to initialize the pseudo random number generator.", new IntData(0)));
    61       Parameters.Add(new LookupParameter<IRandom>("Random", "The pseudo random number generator which should be initialized with the given seed."));
     57      Parameters.Add(new ValueLookupParameter<IntData>("Seed", "The random seed used to initialize the new pseudo random number generator.", new IntData(0)));
     58      Parameters.Add(new LookupParameter<IRandom>("Random", "The new pseudo random number generator which is initialized with the given seed."));
    6259    }
    6360
Note: See TracChangeset for help on using the changeset viewer.