Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/SubFunctionTreeNode.cs @ 18065

Last change on this file since 18065 was 18065, checked in by dpiringe, 3 years ago

#3136

  • modified InfixExpressionParser to fully support SubFunctionSymbol
    • created a SubFunctionTreeNode to store the function arguments
  • modified StructureTemplateView to regenerate the content state
  • first implementation for the main tree build up logic
File size: 1.1 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using HEAL.Attic;
7using HeuristicLab.Common;
8using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
9
10namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
11  [StorableType("05130B5F-0125-4367-A4E9-C42D1085024E")]
12  public class SubFunctionTreeNode : SymbolicExpressionTreeNode {
13
14    #region Properties
15    public new SubFunctionSymbol Symbol => (SubFunctionSymbol)base.Symbol;
16
17    public IEnumerable<string> FunctionArguments { get; set; } = Enumerable.Empty<string>();
18    #endregion
19
20    #region Constructors
21    public SubFunctionTreeNode(SubFunctionSymbol symbol) : base(symbol) { }
22
23    [StorableConstructor]
24    protected SubFunctionTreeNode(StorableConstructorFlag _) : base(_) { }
25
26    protected SubFunctionTreeNode(SubFunctionTreeNode original, Cloner cloner) : base(original, cloner) { }
27    #endregion
28
29    #region Cloning
30    public override IDeepCloneable Clone(Cloner cloner) => new SubFunctionTreeNode(this, cloner);
31    #endregion
32  }
33}
Note: See TracBrowser for help on using the repository browser.