Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/06/10 11:59:50 (14 years ago)
Author:
gkronber
Message:

Minor improvements concerning efficiency of symbolic expression tree encoding data structures and operators. #1073

Location:
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/ReadOnlySymbol.cs

    r3993 r3997  
    3434  [Item("ReadOnlySymbol", "Represents a symbol in a symbolic function tree that cannot be modified.")]
    3535  public abstract class ReadOnlySymbol : Symbol {
    36     #region Properties
    37     [Storable]
    38     private double initialFrequency;
    39     public double InitialFrequency {
    40       get { return initialFrequency; }
    41       set { throw new NotSupportedException(); }
    42     }
    43     #endregion
     36    //#region Properties
     37    //[Storable]
     38    //private double initialFrequency;
     39    //public double InitialFrequency {
     40    //  get { return initialFrequency; }
     41    //  set { throw new NotSupportedException(); }
     42    //}
     43    //#endregion
    4444
    4545    public override bool CanChangeName {
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Symbols/StartSymbol.cs

    r3824 r3997  
    2525namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols {
    2626  [StorableClass]
    27   [Item("StartSymbol", "Special symbol that represents the starting node of the result producing branch of a symbolic expression tree.")]
     27  [Item(StartSymbol.StartSymbolName, StartSymbol.StartSymbolDescription)]
    2828  public sealed class StartSymbol : ReadOnlySymbol {
     29    public const string StartSymbolName = "StartSymbol";
     30    public const string StartSymbolDescription = "Special symbol that represents the starting node of the result producing branch of a symbolic expression tree.";
     31
     32    public StartSymbol() : base(StartSymbol.StartSymbolName, StartSymbol.StartSymbolDescription) { }
     33    [StorableConstructor]
     34    private StartSymbol(bool deserializing) : base(deserializing) { }
    2935
    3036    public override SymbolicExpressionTreeNode CreateTreeNode() {
Note: See TracChangeset for help on using the changeset viewer.