[5373] | 1 | #region License Information
|
---|
| 2 | /* HeuristicLab
|
---|
[5445] | 3 | * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
[5373] | 4 | *
|
---|
| 5 | * This file is part of HeuristicLab.
|
---|
| 6 | *
|
---|
| 7 | * HeuristicLab is free software: you can redistribute it and/or modify
|
---|
| 8 | * it under the terms of the GNU General Public License as published by
|
---|
| 9 | * the Free Software Foundation, either version 3 of the License, or
|
---|
| 10 | * (at your option) any later version.
|
---|
| 11 | *
|
---|
| 12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 15 | * GNU General Public License for more details.
|
---|
| 16 | *
|
---|
| 17 | * You should have received a copy of the GNU General Public License
|
---|
| 18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
| 19 | */
|
---|
| 20 | #endregion
|
---|
| 21 | using System.Collections.Generic;
|
---|
| 22 | using HeuristicLab.Core;
|
---|
| 23 | using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Symbols;
|
---|
| 24 | namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
|
---|
| 25 | public interface ISymbolicExpressionTreeNode {
|
---|
| 26 | ISymbolicExpressionGrammar Grammar { get; }
|
---|
| 27 |
|
---|
| 28 | Symbol Symbol { get; }
|
---|
| 29 | bool HasLocalParameters { get; }
|
---|
| 30 | IEnumerable<Symbol> GetAllowedSymbols(int argumentIndex);
|
---|
| 31 |
|
---|
| 32 | int GetHeight();
|
---|
| 33 | int GetSize();
|
---|
| 34 | int GetMinSubtreeCount();
|
---|
| 35 | int GetMaxSubtreeCount();
|
---|
| 36 |
|
---|
| 37 | IEnumerable<SymbolicExpressionTreeNode> IterateNodesPostfix();
|
---|
| 38 | IEnumerable<SymbolicExpressionTreeNode> IterateNodesPrefix();
|
---|
| 39 |
|
---|
| 40 | IList<SymbolicExpressionTreeNode> SubTrees { get; }
|
---|
| 41 | void AddSubTree(SymbolicExpressionTreeNode tree);
|
---|
| 42 | void InsertSubTree(int index, SymbolicExpressionTreeNode tree);
|
---|
| 43 | void RemoveSubTree(int index);
|
---|
| 44 |
|
---|
| 45 | void ResetLocalParameters(IRandom random);
|
---|
| 46 | void ShakeLocalParameters(IRandom random, double shakingFactor);
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 | }
|
---|
| 50 | }
|
---|