Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/16/11 15:00:11 (14 years ago)
Author:
mkommend
Message:

#1418 - Refactored Encodings.SymbolicExpressionTree

File:
1 edited

Legend:

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

    r5445 r5494  
    2121using System.Collections.Generic;
    2222using HeuristicLab.Core;
    23 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;
    2423namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
    25   public interface ISymbolicExpressionTreeNode {
     24  public interface ISymbolicExpressionTreeNode : IItem {
    2625    ISymbolicExpressionGrammar Grammar { get; }
    2726
    28     Symbol Symbol { get; }
     27    ISymbol Symbol { get; }
    2928    bool HasLocalParameters { get; }
    30     IEnumerable<Symbol> GetAllowedSymbols(int argumentIndex);
     29    IEnumerable<ISymbol> GetAllowedSymbols(int argumentIndex);
    3130
    3231    int GetHeight();
     
    3534    int GetMaxSubtreeCount();
    3635
    37     IEnumerable<SymbolicExpressionTreeNode> IterateNodesPostfix();
    38     IEnumerable<SymbolicExpressionTreeNode> IterateNodesPrefix();
     36    IEnumerable<ISymbolicExpressionTreeNode> IterateNodesPostfix();
     37    IEnumerable<ISymbolicExpressionTreeNode> IterateNodesPrefix();
    3938
    40     IList<SymbolicExpressionTreeNode> SubTrees { get; }
    41     void AddSubTree(SymbolicExpressionTreeNode tree);
    42     void InsertSubTree(int index, SymbolicExpressionTreeNode tree);
     39    IEnumerable<SymbolicExpressionTreeNode> SubTrees { get; }
     40    void AddSubTree(ISymbolicExpressionTreeNode tree);
     41    void InsertSubTree(int index, ISymbolicExpressionTreeNode tree);
    4342    void RemoveSubTree(int index);
    4443
    4544    void ResetLocalParameters(IRandom random);
    4645    void ShakeLocalParameters(IRandom random, double shakingFactor);
    47 
    48 
    4946  }
    5047}
Note: See TracChangeset for help on using the changeset viewer.