Free cookie consent management tool by TermsFeed Policy Generator

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

#1418: Finally added results from the grammar refactoring.

File:
1 edited

Legend:

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

    r5529 r5686  
    2121
    2222using System.Collections.Generic;
    23 using HeuristicLab.Core;
     23namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
     24  public interface ISymbolicExpressionTreeGrammar : ISymbolicExpressionGrammarBase {
    2425
    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);
    2928    void AddSymbol(ISymbol symbol);
    3029    void RemoveSymbol(ISymbol symbol);
    3130
    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);
    3535
    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);
    4637  }
    4738}
Note: See TracChangeset for help on using the changeset viewer.