Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/11 14:35:05 (13 years ago)
Author:
mkommend
Message:

#1418: Added names and descriptions to grammars and adapted their view.

File:
1 edited

Legend:

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

    r5686 r5688  
    4747    protected Dictionary<Tuple<string, int>, List<string>> allowedChildSymbolsPerIndex;
    4848
     49    public override bool CanChangeName {
     50      get { return false; }
     51    }
     52    public override bool CanChangeDescription {
     53      get { return false; }
     54    }
     55
    4956    [StorableConstructor]
    5057    protected SymbolicExpressionGrammarBase(bool deserializing)
     
    7279    }
    7380
    74     protected SymbolicExpressionGrammarBase()
    75       : base() {
     81    protected SymbolicExpressionGrammarBase(string name, string description)
     82      : base(name, description) {
    7683      cachedMinExpressionLength = new Dictionary<string, int>();
    7784      cachedMaxExpressionLength = new Dictionary<string, int>();
Note: See TracChangeset for help on using the changeset viewer.