Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/22/10 08:53:04 (14 years ago)
Author:
gkronber
Message:

Bug fixes in cloning and persistence code. #938

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/Symbols/Constant.cs

    r3462 r3485  
    3333  public sealed class Constant : Symbol {
    3434    #region Propeties
     35    [Storable]
    3536    private double minValue;
    3637    public double MinValue {
     
    3839      set { minValue = value; }
    3940    }
     41    [Storable]
    4042    private double maxValue;
    4143    public double MaxValue {
     
    5153      return new ConstantTreeNode(this);
    5254    }
     55
     56    public override IDeepCloneable Clone(Cloner cloner) {
     57      Constant clone = (Constant) base.Clone(cloner);
     58      clone.minValue = minValue;
     59      clone.maxValue = maxValue;
     60      return clone;
     61    }
    5362  }
    5463}
Note: See TracChangeset for help on using the changeset viewer.