Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/22/16 15:49:28 (9 years ago)
Author:
mkommend
Message:

#2598: Adapted problemData property and ctor of DataAnalysisProblems.

Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
Files:
3 edited

Legend:

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

    r12504 r13785  
    3535    public override IDeepCloneable Clone(Cloner cloner) { return new ClassificationProblem(this, cloner); }
    3636
    37     public ClassificationProblem()
    38       : base() {
    39       ProblemData = new ClassificationProblemData();
    40     }
     37    public ClassificationProblem() : base(new ClassificationProblemData()) { }
    4138  }
    4239}
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Clustering/ClusteringProblem.cs

    r12504 r13785  
    3333    public override IDeepCloneable Clone(Cloner cloner) { return new ClusteringProblem(this, cloner); }
    3434
    35     public ClusteringProblem()
    36       : base() {
    37       ProblemData = new ClusteringProblemData();
    38     }
     35    public ClusteringProblem() : base(new ClusteringProblemData()) { }
    3936  }
    4037}
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblem.cs

    r12012 r13785  
    4949    public T ProblemData {
    5050      get { return ProblemDataParameter.Value; }
    51       protected set {
    52         ProblemDataParameter.Value = value;
    53       }
     51      set { ProblemDataParameter.Value = value; }
    5452    }
    5553    #endregion
     
    6058    [StorableConstructor]
    6159    protected DataAnalysisProblem(bool deserializing) : base(deserializing) { }
    62     public DataAnalysisProblem()
    63       : base() {
    64       Parameters.Add(new ValueParameter<T>(ProblemDataParameterName, ProblemDataParameterDescription));
    65       RegisterEventHandlers();
    66     }
    6760
    6861    protected DataAnalysisProblem(T problemData)
    69       : this() {
    70       ProblemData = problemData;
     62      : base() {
     63      Parameters.Add(new ValueParameter<T>(ProblemDataParameterName, ProblemDataParameterDescription, problemData));
     64      RegisterEventHandlers();
    7165    }
    7266
Note: See TracChangeset for help on using the changeset viewer.