Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (13 years ago)
Author:
swagner
Message:

Merged cloning refactoring branch back into trunk (#922)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Random/3.3/NormalRandomizer.cs

    r4477 r4722  
    2020#endregion
    2121
     22using HeuristicLab.Common;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Data;
     
    3334  [Item("NormalRandomizer", "Initializes the value of variable 'Value' to a random value normally distributed with parameters 'Mu' and 'Sigma'")]
    3435  public class NormalRandomizer : SingleSuccessorOperator {
    35     #region parameter properties
     36    #region Parameter Properties
    3637    public ILookupParameter<IRandom> RandomParameter {
    3738      get { return (ILookupParameter<IRandom>)Parameters["Random"]; }
     
    4748    }
    4849    #endregion
     50
    4951    #region Properties
    5052    public DoubleValue Mu {
     
    5759    }
    5860    #endregion
     61
     62    [StorableConstructor]
     63    protected NormalRandomizer(bool deserializing) : base(deserializing) { }
     64    protected NormalRandomizer(NormalRandomizer original, Cloner cloner) : base(original, cloner) { }
    5965    /// <summary>
    6066    /// Initializes a new instance of <see cref="NormalRandomizer"/> with four variable infos
     
    6773      Parameters.Add(new LookupParameter<DoubleValue>("Value", "The value that should be set to a random value."));
    6874    }
    69     [StorableConstructor]
    70     protected NormalRandomizer(bool deserializing) : base(deserializing) { }
     75
     76    public override IDeepCloneable Clone(Cloner cloner) {
     77      return new NormalRandomizer(this, cloner);
     78    }
    7179
    7280    /// <summary>
Note: See TracChangeset for help on using the changeset viewer.