Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/23/19 12:45:26 (5 years ago)
Author:
chaider
Message:

#2971

  • Removed Storable from Intervals
  • Changed copy constructor from NamedIntervals class
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval.cs

    r16547 r16548  
    2828
    2929namespace HeuristicLab.Problems.DataAnalysis {
    30   [StorableClass]
    31   public class Interval :Item, IEquatable<Interval> {
    32     [Storable]
     30  public class Interval : IEquatable<Interval> {
    3331    public double LowerBound { get; private set; }
    34     [Storable]
    3532    public double UpperBound { get; private set; }
    3633
    37     [StorableConstructor]
    38     protected Interval(bool deserializing) : base(deserializing) { }
    39     protected Interval(Interval original, Cloner cloner)
    40       : base(original, cloner) {
    41     }
     34
    4235    public Interval(double lowerBound, double upperBound) {
    4336      if (lowerBound > upperBound)
     
    5043    public bool Contains(double value) {
    5144      return LowerBound <= value && value <= UpperBound;
    52     }
    53 
    54     public override IDeepCloneable Clone(Cloner cloner) {
    55       return new Interval(this, cloner);
    5645    }
    5746
Note: See TracChangeset for help on using the changeset viewer.