Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/21/13 21:04:20 (11 years ago)
Author:
gkronber
Message:

#1270 fixed compile errors in Smalltalk and GraphViz formatters

Location:
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Formatters/SymbolicExpressionTreeGraphvizFormatter.cs

    r9648 r9649  
    5151    }
    5252
    53     public string Format(SymbolicExpressionTree symbolicExpressionTree) {
     53    public string Format(ISymbolicExpressionTree symbolicExpressionTree) {
    5454      int nodeCounter = 1;
    5555      StringBuilder strBuilder = new StringBuilder();
     
    6060    }
    6161
    62     private string FormatRecursively(SymbolicExpressionTreeNode node, int indentLength, ref int nodeId) {
     62    private string FormatRecursively(ISymbolicExpressionTreeNode node, int indentLength, ref int nodeId) {
    6363      // save id of current node
    6464      int currentNodeId = nodeId;
     
    7777      strBuilder.Append("node" + currentNodeId + "[label=\"" + nodeLabel + "\"");
    7878      // leaf nodes should have box shape
    79       if (node.SubTrees.Count == 0) {
     79      if (node.SubtreeCount == 0) {
    8080        strBuilder.AppendLine(", shape=\"box\"];");
    8181      } else {
     
    8484
    8585      // internal nodes or leaf nodes?
    86       foreach (SymbolicExpressionTreeNode subTree in node.SubTrees) {
     86      foreach (ISymbolicExpressionTreeNode subTree in node.Subtrees) {
    8787        // add an edge
    8888        if (Indent) strBuilder.Append(' ', indentLength);
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Formatters/SymbolicExpressionTreeStringFormatter.cs

    r9456 r9649  
    2828namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding {
    2929
    30   [Item("SymbolicExpressionTreeStringFormatter", "The default string formatter for symbolic expression trees.")]
     30  [Item("Default String Formatter", "The default string formatter for symbolic expression trees.")]
    3131  [StorableClass]
    3232  public class SymbolicExpressionTreeStringFormatter : NamedItem, ISymbolicExpressionTreeStringFormatter {
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj

    r9530 r9649  
    132132    </Compile>
    133133    <Compile Include="Creators\RampedHalfAndHalfTreeCreator.cs" />
     134    <Compile Include="Formatters\SymbolicExpressionTreeGraphvizFormatter.cs" />
    134135    <Compile Include="Interfaces\IReadOnlySymbol.cs" />
    135136    <Compile Include="Interfaces\ISymbolicExpressionGrammar.cs" />
Note: See TracChangeset for help on using the changeset viewer.