Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/13/10 20:44:31 (15 years ago)
Author:
gkronber
Message:

Fixed bugs related to dynamic symbol constraints with ADFs. #290 (Implement ADFs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/Interfaces/ISymbolicExpressionGrammar.cs

    r3294 r3338  
    3131  public interface ISymbolicExpressionGrammar : IItem {
    3232    Symbol StartSymbol { get; }
    33     Symbol ProgramRootSymbol { get; }
    34     IEnumerable<Symbol> GetAllowedSymbols(Symbol parent, int argumentIndex);
     33    void AddSymbol(Symbol symbol);
     34    void RemoveSymbol(Symbol symbol);
     35    IEnumerable<Symbol> Symbols { get; }
     36    void SetAllowedChild(Symbol parent, Symbol child, int argumentIndex);
     37    bool IsAllowedChild(Symbol parent, Symbol child, int argumentIndex);
    3538    int GetMinExpressionLength(Symbol start);
    3639    int GetMaxExpressionLength(Symbol start);
    3740    int GetMinExpressionDepth(Symbol start);
    38     int GetMinSubTreeCount(Symbol start);
    39     int GetMaxSubTreeCount(Symbol start);
    40 
    41     bool IsValidExpression(SymbolicExpressionTree expression);
     41    int GetMinSubtreeCount(Symbol symbol);
     42    void SetMinSubtreeCount(Symbol symbol, int value);
     43    int GetMaxSubtreeCount(Symbol symbol);
     44    void SetMaxSubtreeCount(Symbol symbol, int value);
    4245  }
    4346}
Note: See TracChangeset for help on using the changeset viewer.