Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/16/11 19:01:00 (14 years ago)
Author:
gkronber
Message:

#1418 changes in symbolic expression tree encoding.

Location:
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
Files:
2 edited

Legend:

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

    • Property svn:ignore
      •  

        old new  
        22obj
        33HeuristicLabEncodingsSymbolicExpressionTreeEncodingPlugin.cs
         4*.user
  • branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Formatters/SymbolicExpressionTreeStringFormatter.cs

    r5445 r5499  
    2121
    2222using System.Text;
     23using System.Linq;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Common;
    2526using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2627
    27 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Formatters {
     28namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
    2829
    2930  [Item("SymbolicExpressionTreeStringFormatter", "The default string formatter for symbolic expression trees.")]
     
    4950    }
    5051
    51     private string FormatRecursively(SymbolicExpressionTreeNode node, int indentLength) {
     52    private string FormatRecursively(ISymbolicExpressionTreeNode node, int indentLength) {
    5253      StringBuilder strBuilder = new StringBuilder();
    5354      if (Indent) strBuilder.Append(' ', indentLength);
    5455      strBuilder.Append("(");
    5556      // internal nodes or leaf nodes?
    56       if (node.SubTrees.Count > 0) {
     57      if (node.SubTrees.Count() > 0) {
    5758        // symbol on same line as '('
    5859        strBuilder.AppendLine(node.ToString());
     
    7576      return new SymbolicExpressionTreeStringFormatter(this, cloner);
    7677    }
    77 
    7878  }
    79 
    8079}
Note: See TracChangeset for help on using the changeset viewer.