Changeset 5688 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Timestamp:
- 03/15/11 14:35:05 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionGrammar.cs
r5686 r5688 100 100 } 101 101 102 public SymbolicExpressionGrammar( )103 : base( ) {102 public SymbolicExpressionGrammar(string name, string description) 103 : base(name, description) { 104 104 programRootSymbol = new ProgramRootSymbol(); 105 105 AddSymbol(programRootSymbol); -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionGrammarBase.cs
r5686 r5688 47 47 protected Dictionary<Tuple<string, int>, List<string>> allowedChildSymbolsPerIndex; 48 48 49 public override bool CanChangeName { 50 get { return false; } 51 } 52 public override bool CanChangeDescription { 53 get { return false; } 54 } 55 49 56 [StorableConstructor] 50 57 protected SymbolicExpressionGrammarBase(bool deserializing) … … 72 79 } 73 80 74 protected SymbolicExpressionGrammarBase( )75 : base( ) {81 protected SymbolicExpressionGrammarBase(string name, string description) 82 : base(name, description) { 76 83 cachedMinExpressionLength = new Dictionary<string, int>(); 77 84 cachedMaxExpressionLength = new Dictionary<string, int>(); -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/SymbolicExpressionTreeGrammar.cs
r5686 r5688 41 41 private ISymbolicExpressionGrammar grammar; 42 42 public SymbolicExpressionTreeGrammar(ISymbolicExpressionGrammar grammar) 43 : base( ) {43 : base("SymbolicExpressionTreeGrammar", "A grammar that is used held by symbolic expression trees and allows extensions to the wraped grammar.") { 44 44 if (grammar == null) throw new ArgumentNullException(); 45 45 this.grammar = grammar; -
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/Grammars.cs
r5686 r5688 97 97 protected SimpleArithmeticGrammar(SimpleArithmeticGrammar original, Cloner cloner) : base(original, cloner) { } 98 98 public SimpleArithmeticGrammar() 99 : base( ) {99 : base("Grammar for unit tests","") { 100 100 Initialize(); 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.