Changeset 13785 for trunk/sources/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 04/22/16 15:49:28 (9 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblem.cs
r12504 r13785 35 35 public override IDeepCloneable Clone(Cloner cloner) { return new ClassificationProblem(this, cloner); } 36 36 37 public ClassificationProblem() 38 : base() { 39 ProblemData = new ClassificationProblemData(); 40 } 37 public ClassificationProblem() : base(new ClassificationProblemData()) { } 41 38 } 42 39 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Clustering/ClusteringProblem.cs
r12504 r13785 33 33 public override IDeepCloneable Clone(Cloner cloner) { return new ClusteringProblem(this, cloner); } 34 34 35 public ClusteringProblem() 36 : base() { 37 ProblemData = new ClusteringProblemData(); 38 } 35 public ClusteringProblem() : base(new ClusteringProblemData()) { } 39 36 } 40 37 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblem.cs
r12012 r13785 49 49 public T ProblemData { 50 50 get { return ProblemDataParameter.Value; } 51 protected set { 52 ProblemDataParameter.Value = value; 53 } 51 set { ProblemDataParameter.Value = value; } 54 52 } 55 53 #endregion … … 60 58 [StorableConstructor] 61 59 protected DataAnalysisProblem(bool deserializing) : base(deserializing) { } 62 public DataAnalysisProblem()63 : base() {64 Parameters.Add(new ValueParameter<T>(ProblemDataParameterName, ProblemDataParameterDescription));65 RegisterEventHandlers();66 }67 60 68 61 protected DataAnalysisProblem(T problemData) 69 : this() { 70 ProblemData = problemData; 62 : base() { 63 Parameters.Add(new ValueParameter<T>(ProblemDataParameterName, ProblemDataParameterDescription, problemData)); 64 RegisterEventHandlers(); 71 65 } 72 66 -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/IDataAnalysisProblem.cs
r12012 r13785 34 34 where T : class, IDataAnalysisProblemData { 35 35 new IValueParameter<T> ProblemDataParameter { get; } 36 new T ProblemData { get; }36 new T ProblemData { get; set; } 37 37 } 38 38 }
Note: See TracChangeset
for help on using the changeset viewer.