Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/11 17:03:08 (14 years ago)
Author:
mkommend
Message:

#1418: Implemented persistence of grammars. Currently it does not work, because the Tuple type is not serializable (see #1442).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionGrammar.cs

    r5691 r5695  
    4949    public int MinimumFunctionArguments {
    5050      get { return minimumFunctionArguments; }
    51       set {
    52         minimumFunctionArguments = value;
    53       }
     51      set { minimumFunctionArguments = value; }
    5452    }
    5553    [Storable]
     
    5755    public int MaximumFunctionArguments {
    5856      get { return maximumFunctionArguments; }
    59       set {
    60         maximumFunctionArguments = value;
    61       }
     57      set { maximumFunctionArguments = value; }
    6258    }
    6359
     
    7066      get { return ProgramRootSymbol; }
    7167    }
     68    [Storable(Name = "ProgramRootSymbol")]
     69    private ISymbol StorableProgramRootSymbol {
     70      get { return programRootSymbol; }
     71      set { programRootSymbol = (ProgramRootSymbol)value; }
     72    }
    7273
    73     [Storable]
    7474    private StartSymbol startSymbol;
    7575    public StartSymbol StartSymbol {
     
    7979      get { return StartSymbol; }
    8080    }
     81    [Storable(Name = "StartSymbol")]
     82    private ISymbol StorableStartSymbol {
     83      get { return startSymbol; }
     84      set { startSymbol = (StartSymbol)value; }
     85    }
    8186
    8287    [Storable]
     
    8489    protected Defun DefunSymbol {
    8590      get { return defunSymbol; }
     91    }
     92    [Storable(Name = "DefunSymbol")]
     93    private ISymbol StorableDefunSymbol {
     94      get { return defunSymbol; }
     95      set { defunSymbol = (Defun)value; }
    8696    }
    8797    #endregion
Note: See TracChangeset for help on using the changeset viewer.