Free cookie consent management tool by TermsFeed Policy Generator

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

#1418: Finally added results from the grammar refactoring.

Location:
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces
Files:
2 added
3 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}
  • branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/ISymbolicExpressionTreeNode.cs

    r5549 r5686  
    1919 */
    2020#endregion
     21using System;
    2122using System.Collections.Generic;
     23using HeuristicLab.Common;
    2224using HeuristicLab.Core;
    23 using System;
    24 using HeuristicLab.Common;
    2525namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
    2626  public interface ISymbolicExpressionTreeNode : IDeepCloneable {
     
    3939
    4040    IEnumerable<ISymbolicExpressionTreeNode> SubTrees { get; }
     41    int SubtreesCount { get; }
    4142    ISymbolicExpressionTreeNode GetSubTree(int index);
    4243    int IndexOfSubTree(ISymbolicExpressionTreeNode tree);
  • branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/Operators/ISymbolicExpressionTreeGrammarBasedOperator.cs

    r5499 r5686  
    2727  /// </summary>
    2828  public interface ISymbolicExpressionTreeGrammarBasedOperator : ISymbolicExpressionTreeOperator {
    29     IValueLookupParameter<ISymbolicExpressionTreeGrammar> SymbolicExpressionTreeGrammarParameter { get; }
     29    IValueLookupParameter<ISymbolicExpressionGrammar> SymbolicExpressionTreeGrammarParameter { get; }
    3030  }
    3131}
Note: See TracChangeset for help on using the changeset viewer.