Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/25/10 19:19:37 (14 years ago)
Author:
gkronber
Message:

Worked on SymbolicTreeEncoding plugin. #937 (Data types and operators for symbolic expression tree encoding)

Location:
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTree/3.3
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTree/3.3

    • Property svn:ignore set to
      bin
      *.user
      obj
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTree/3.3/Symbol.cs

    r3218 r3219  
    2424using System.Text;
    2525using HeuristicLab.Core;
    26 using System.Xml;
    27 using System.Diagnostics;
    28 using HeuristicLab.GP.Interfaces;
    2926using System.Linq;
    3027
    31 namespace HeuristicLab.GP {
    32   public abstract class Function : ItemBase, IFunction {
    33     private List<List<IFunction>> allowedSubFunctions = new List<List<IFunction>>();
     28namespace HeuristicLab.Encodings.SymbolicExpressionTree {
     29  public abstract class Symbol {
     30    private List<List<Symbol>> allowedSubFunctions = new List<List<Symbol>>();
    3431    private int minArity = -1;
    3532    private int maxArity = -1;
     
    8885            if (allowedSubFunctions.Count > 0) {
    8986              // copy the list of allowed sub-functions from the previous slot
    90               allowedSubFunctions.Add(new List<IFunction>(allowedSubFunctions[allowedSubFunctions.Count - 1]));
     87              allowedSubFunctions.Add(new List<Symbol>(allowedSubFunctions[allowedSubFunctions.Count - 1]));
    9188            } else {
    9289              // add empty list
    93               allowedSubFunctions.Add(new List<IFunction>());
     90              allowedSubFunctions.Add(new List<Symbol>());
    9491            }
    9592          }
     
    107104          FireChanged();
    108105        }
    109         Debug.Assert(minTreeSize > 0);
     106        // Debug.Assert(minTreeSize > 0);
    110107        return minTreeSize;
    111108      }
     
    118115          FireChanged();
    119116        }
    120         Debug.Assert(minTreeHeight > 0);
     117        // Debug.Assert(minTreeHeight > 0);
    121118        return minTreeHeight;
    122119      }
Note: See TracChangeset for help on using the changeset viewer.