Changeset 5686 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/ISymbolicExpressionTreeGrammar.cs
- Timestamp:
- 03/15/11 13:34:38 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/ISymbolicExpressionTreeGrammar.cs
r5529 r5686 21 21 22 22 using System.Collections.Generic; 23 using HeuristicLab.Core; 23 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 24 public interface ISymbolicExpressionTreeGrammar : ISymbolicExpressionGrammarBase { 24 25 25 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 26 public interface ISymbolicExpressionTreeGrammar : IItem { 27 IEnumerable<ISymbol> Symbols { get; } 28 ISymbol StartSymbol { get; } 26 IEnumerable<ISymbol> ModifyableSymbols { get; } 27 bool IsModifyableSymbol(ISymbol symbol); 29 28 void AddSymbol(ISymbol symbol); 30 29 void RemoveSymbol(ISymbol symbol); 31 30 32 bool ContainsSymbol(ISymbol symbol); 33 void SetAllowedChild(ISymbol parent, ISymbol child, int argumentIndex); 34 bool IsAllowedChild(ISymbol parent, ISymbol child, int argumentIndex); 31 void AddAllowedChildSymbol(ISymbol parent, ISymbol child); 32 void AddAllowedChildSymbol(ISymbol parent, ISymbol child, int argumentIndex); 33 void RemoveAllowedChildSymbol(ISymbol parent, ISymbol child); 34 void RemoveAllowedChildSymbol(ISymbol parent, ISymbol child, int argumentIndex); 35 35 36 IEnumerable<ISymbol> GetAllowedSymbols(ISymbol parent, int argumentIndex); 37 38 int GetMinExpressionLength(ISymbol start); 39 int GetMaxExpressionLength(ISymbol start); 40 int GetMinExpressionDepth(ISymbol start); 41 42 int GetMinSubtreeCount(ISymbol symbol); 43 void SetMinSubtreeCount(ISymbol symbol, int value); 44 int GetMaxSubtreeCount(ISymbol symbol); 45 void SetMaxSubtreeCount(ISymbol symbol, int value); 36 void SetSubtreeCount(ISymbol symbol, int minimumSubtreeCount, int maximumSubtreeCount); 46 37 } 47 38 }
Note: See TracChangeset
for help on using the changeset viewer.