Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/06/17 11:40:45 (8 years ago)
Author:
gkronber
Message:

#2650: sealed variable symbol classes

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

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/BinaryFactorVariable.cs

    r14826 r14830  
    3030  [StorableClass]
    3131  [Item("BinaryFactorVariable", "Represents a categorical variable (comparable to factors as in R) and it's value.")]
    32   public class BinaryFactorVariable : VariableBase {
     32  public sealed class BinaryFactorVariable : VariableBase {
    3333
    3434    private readonly Dictionary<string, List<string>> variableValues;
     
    4747
    4848    [StorableConstructor]
    49     protected BinaryFactorVariable(bool deserializing)
     49    private BinaryFactorVariable(bool deserializing)
    5050      : base(deserializing) {
    5151      variableValues = new Dictionary<string, List<string>>();
    5252    }
    53     protected BinaryFactorVariable(BinaryFactorVariable original, Cloner cloner)
     53    private BinaryFactorVariable(BinaryFactorVariable original, Cloner cloner)
    5454      : base(original, cloner) {
    5555      variableValues =
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/FactorVariable.cs

    r14826 r14830  
    3030  [StorableClass]
    3131  [Item("FactorVariable", "Represents a categorical variable (comparable to factors as in R).")]
    32   public class FactorVariable : VariableBase {
     32  public sealed class FactorVariable : VariableBase {
    3333    private readonly Dictionary<string, Dictionary<string, int>> variableValues; // for each variable value also store a zero-based index
    3434    [Storable]
     
    4545
    4646    [StorableConstructor]
    47     protected FactorVariable(bool deserializing)
     47    private FactorVariable(bool deserializing)
    4848      : base(deserializing) {
    4949      variableValues = new Dictionary<string, Dictionary<string, int>>();
    5050    }
    51     protected FactorVariable(FactorVariable original, Cloner cloner)
     51    private FactorVariable(FactorVariable original, Cloner cloner)
    5252      : base(original, cloner) {
    5353      variableValues =
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/Variable.cs

    r14826 r14830  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    2422using HeuristicLab.Common;
    2523using HeuristicLab.Core;
     
    2927  [StorableClass]
    3028  [Item("Variable", "Represents a variable value.")]
    31   public class Variable : VariableBase {
     29  public sealed class Variable : VariableBase {
    3230
    3331    [StorableConstructor]
    34     protected Variable(bool deserializing)
     32    private Variable(bool deserializing)
    3533      : base(deserializing) {
    3634    }
    37     protected Variable(Variable original, Cloner cloner)
     35    private Variable(Variable original, Cloner cloner)
    3836      : base(original, cloner) {
    3937    }
Note: See TracChangeset for help on using the changeset viewer.