Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/11 14:57:24 (13 years ago)
Author:
gkronber
Message:

#1552: implemented first version of an optimizer for regression analysis experiments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblem.cs

    r5809 r6587  
    4848    public T ProblemData {
    4949      get { return ProblemDataParameter.Value; }
    50       protected set { ProblemDataParameter.Value = value; }
     50      protected set {
     51        ProblemDataParameter.Value = value;
     52      }
    5153    }
    5254    #endregion
    5355    protected DataAnalysisProblem(DataAnalysisProblem<T> original, Cloner cloner)
    5456      : base(original, cloner) {
     57      RegisterEventHandlers();
    5558    }
    5659    [StorableConstructor]
     
    5962      : base() {
    6063      Parameters.Add(new ValueParameter<T>(ProblemDataParameterName, ProblemDataParameterDescription));
     64      RegisterEventHandlers();
     65    }
     66
     67    [StorableHook(HookType.AfterDeserialization)]
     68    private void AfterDeserialization() {
     69      RegisterEventHandlers();
    6170    }
    6271
    6372    private void RegisterEventHandlers() {
     73      ProblemDataParameter.ValueChanged += new EventHandler(ProblemDataParameter_ValueChanged);
     74      if (ProblemDataParameter.Value != null) ProblemDataParameter.Value.Changed += new EventHandler(ProblemDataParameter_ValueChanged);
     75    }
     76
     77    private void ProblemDataParameter_ValueChanged(object sender, EventArgs e) {
    6478      ProblemDataParameter.Value.Changed += new EventHandler(ProblemDataParameter_ValueChanged);
    65     }
    66     private void ProblemDataParameter_ValueChanged(object sender, EventArgs e) {
    6779      OnProblemDataChanged();
    6880      OnReset();
Note: See TracChangeset for help on using the changeset viewer.