Changeset 16917


Ignore:
Timestamp:
05/08/19 10:01:30 (3 weeks ago)
Author:
chaider
Message:

#2971 Reformated code and added null-condition to Intervals

File:
1 edited

Legend:

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

    r16900 r16917  
    5959
    6060    private string target;
    61 
    6261    [Storable]
    6362    public string Target {
     
    117116
    118117    private bool inclusiveUpperBound;
    119 
    120118    [Storable]
    121119    public bool InclusiveUpperBound {
     
    170168      this.InclusiveLowerBound = original.InclusiveLowerBound;
    171169      this.InclusiveUpperBound = original.InclusiveUpperBound;
    172       this.enabled = original.enabled;
     170      this.Enabled = original.Enabled;
    173171    }
    174172
     
    200198          Variable,
    201199          (InclusiveLowerBound) ? "[" : "]",
    202           Interval.LowerBound,
    203           Interval.UpperBound,
     200          Interval?.LowerBound,
     201          Interval?.UpperBound,
    204202          (InclusiveUpperBound) ? "]" : "[");
    205203        Expression = expression;
     
    210208        Target,
    211209        (InclusiveLowerBound) ? "[" : "]",
    212         Interval.LowerBound,
    213         Interval.UpperBound,
     210        Interval?.LowerBound,
     211        Interval?.UpperBound,
    214212        (InclusiveUpperBound) ? "]" : "[",
    215213        GetDerivationString(numberOfDerivation));
Note: See TracChangeset for help on using the changeset viewer.