Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (7 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/FactorVariable.cs

    r14830 r14927  
    2626using HeuristicLab.Core;
    2727using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     28using HeuristicLab.Persistence;
    2929namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    30   [StorableClass]
     30  [StorableType("db377286-b5b0-4974-bb22-45e002a5631c")]
    3131  [Item("FactorVariable", "Represents a categorical variable (comparable to factors as in R).")]
    3232  public sealed class FactorVariable : VariableBase {
     
    3636      get { return variableValues; }
    3737      set {
    38         if(value == null) throw new ArgumentNullException();
     38        if (value == null) throw new ArgumentNullException();
    3939        variableValues.Clear();
    40         foreach(var kvp in value) {
     40        foreach (var kvp in value) {
    4141          variableValues.Add(kvp.Key, new Dictionary<string, int>(kvp.Value));
    4242        }
     
    5757    public FactorVariable(string name, string description)
    5858      : base(name, description) {
    59       variableValues = new Dictionary<string, Dictionary<string,int>>();
     59      variableValues = new Dictionary<string, Dictionary<string, int>>();
    6060    }
    6161
Note: See TracChangeset for help on using the changeset viewer.