Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/17/10 15:55:45 (14 years ago)
Author:
gkronber
Message:

Implemented view for symbolic expression grammars and symbols. #1014

File:
1 edited

Legend:

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

    r3541 r3824  
    4040    public double WeightNu {
    4141      get { return weightNu; }
    42       set { weightNu = value; }
     42      set {
     43        if (value != weightNu) {
     44          weightNu = value;
     45          OnChanged(EventArgs.Empty);
     46        }
     47      }
    4348    }
    4449    [Storable]
     
    4853      set {
    4954        if (weightSigma < 0.0) throw new ArgumentException("Negative sigma is not allowed.");
    50         weightSigma = value;
     55        if (value != weightSigma) {
     56          weightSigma = value;
     57          OnChanged(EventArgs.Empty);
     58        }
    5159      }
    5260    }
     
    5563    public double WeightManipulatorNu {
    5664      get { return weightManipulatorNu; }
    57       set { weightManipulatorNu = value; }
     65      set {
     66        if (value != weightManipulatorNu) {
     67          weightManipulatorNu = value;
     68          OnChanged(EventArgs.Empty);
     69        }
     70      }
    5871    }
    5972    [Storable]
     
    6376      set {
    6477        if (weightManipulatorSigma < 0.0) throw new ArgumentException("Negative sigma is not allowed.");
    65         weightManipulatorSigma = value;
     78        if (value != weightManipulatorSigma) {
     79          weightManipulatorSigma = value;
     80          OnChanged(EventArgs.Empty);
     81        }
    6682      }
    6783    }
     
    7490        variableNames.Clear();
    7591        variableNames.AddRange(value);
     92        OnChanged(EventArgs.Empty);
    7693      }
    7794    }
Note: See TracChangeset for help on using the changeset viewer.