Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/27/20 14:02:29 (4 years ago)
Author:
mkommend
Message:

#2521: Added ctor in implementations of data analysis problems and sealed the basic versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblem.cs

    r17515 r17518  
    2727  [StorableType("93696570-A410-4885-A210-7220771B6050")]
    2828  [Item("Classification Problem", "A general classification problem.")]
    29   public class ClassificationProblem : DataAnalysisProblem<IClassificationProblemData>, IClassificationProblem, IStorableContent {
    30     public string Filename { get; set; }
    31 
     29  public sealed class ClassificationProblem : DataAnalysisProblem<IClassificationProblemData>, IClassificationProblem, IStorableContent {
    3230    [StorableConstructor]
    33     protected ClassificationProblem(StorableConstructorFlag _) : base(_) { }
    34     protected ClassificationProblem(ClassificationProblem original, Cloner cloner) : base(original, cloner) { }
     31    private ClassificationProblem(StorableConstructorFlag _) : base(_) { }
     32    private ClassificationProblem(ClassificationProblem original, Cloner cloner) : base(original, cloner) { }
    3533    public override IDeepCloneable Clone(Cloner cloner) { return new ClassificationProblem(this, cloner); }
    3634
    3735    public ClassificationProblem() : base(new ClassificationProblemData()) { }
     36    public ClassificationProblem(IClassificationProblemData problemData) : base(problemData) { }
     37
    3838  }
    3939}
Note: See TracChangeset for help on using the changeset viewer.