Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/14/21 17:59:53 (3 years ago)
Author:
dpiringe
Message:

#3136

  • changed the StructureTemplateView -> nodes of type SubFunctionTreeNode are now clickable
    • still need to overhaul the UI elements
  • added a way to parse SubFunctionTreeNode with a unique name in InfixExpressionParser
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/SubFunctionTreeNode.cs

    r18066 r18067  
    1010namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    1111  [StorableType("05130B5F-0125-4367-A4E9-C42D1085024E")]
    12   public class SubFunctionTreeNode : SymbolicExpressionTreeNode {
     12  public class SubFunctionTreeNode : SymbolicExpressionTreeNode { //TODO: as TerminalNode? -> but has children in a fully builded tree
    1313
    1414    #region Properties
    1515    public new SubFunctionSymbol Symbol => (SubFunctionSymbol)base.Symbol;
    1616
    17     public IEnumerable<string> FunctionArguments { get; set; } = Enumerable.Empty<string>();
     17    public IEnumerable<string> Arguments { get; set; } = Enumerable.Empty<string>();
    1818   
    1919    public SubFunction SubFunction { get; set; }
     20
     21    public string Name { get; set; }
    2022    #endregion
    2123
     
    3436    public override IDeepCloneable Clone(Cloner cloner) => new SubFunctionTreeNode(this, cloner);
    3537    #endregion
     38
     39    public override string ToString() {
     40      if (string.IsNullOrEmpty(Name))
     41        return base.ToString();
     42      return Name;
     43    }
     44   
    3645  }
    3746}
Note: See TracChangeset for help on using the changeset viewer.