Changeset 5494 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/ISymbolicExpressionTreeNode.cs
- Timestamp:
- 02/16/11 15:00:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Interfaces/ISymbolicExpressionTreeNode.cs
r5445 r5494 21 21 using System.Collections.Generic; 22 22 using HeuristicLab.Core; 23 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;24 23 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 25 public interface ISymbolicExpressionTreeNode {24 public interface ISymbolicExpressionTreeNode : IItem { 26 25 ISymbolicExpressionGrammar Grammar { get; } 27 26 28 Symbol Symbol { get; }27 ISymbol Symbol { get; } 29 28 bool HasLocalParameters { get; } 30 IEnumerable< Symbol> GetAllowedSymbols(int argumentIndex);29 IEnumerable<ISymbol> GetAllowedSymbols(int argumentIndex); 31 30 32 31 int GetHeight(); … … 35 34 int GetMaxSubtreeCount(); 36 35 37 IEnumerable< SymbolicExpressionTreeNode> IterateNodesPostfix();38 IEnumerable< SymbolicExpressionTreeNode> IterateNodesPrefix();36 IEnumerable<ISymbolicExpressionTreeNode> IterateNodesPostfix(); 37 IEnumerable<ISymbolicExpressionTreeNode> IterateNodesPrefix(); 39 38 40 I List<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); 43 42 void RemoveSubTree(int index); 44 43 45 44 void ResetLocalParameters(IRandom random); 46 45 void ShakeLocalParameters(IRandom random, double shakingFactor); 47 48 49 46 } 50 47 }
Note: See TracChangeset
for help on using the changeset viewer.