Changeset 13785


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

#2598: Adapted problemData property and ctor of DataAnalysisProblems.

Location:
trunk/sources
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab 3.3.sln

    r13580 r13785  
    1010    ..\documentation\License\gpl-3.0.txt = ..\documentation\License\gpl-3.0.txt
    1111    MergeConfigs.cmd = MergeConfigs.cmd
     12    Performance1.psess = Performance1.psess
    1213    PreBuildEvent.cmd = PreBuildEvent.cmd
    1314  EndProjectSection
     
    22452246    {7FC70D74-1813-48B7-9CE5-0BD913457579} = {D1B1DE45-F9C7-4FBF-B73C-E759BC4223D5}
    22462247  EndGlobalSection
     2248  GlobalSection(Performance) = preSolution
     2249    HasPerformanceSessions = true
     2250  EndGlobalSection
    22472251EndGlobal
  • 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
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IDataAnalysisProblem.cs

    r12012 r13785  
    3434  where T : class, IDataAnalysisProblemData {
    3535    new IValueParameter<T> ProblemDataParameter { get; }
    36     new T ProblemData { get; }
     36    new T ProblemData { get; set; }
    3737  }
    3838}
Note: See TracChangeset for help on using the changeset viewer.