- Timestamp:
- 03/25/10 19:19:37 (14 years ago)
- 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
-
Property
svn:ignore
set to
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTree/3.3/Symbol.cs
r3218 r3219 24 24 using System.Text; 25 25 using HeuristicLab.Core; 26 using System.Xml;27 using System.Diagnostics;28 using HeuristicLab.GP.Interfaces;29 26 using System.Linq; 30 27 31 namespace HeuristicLab. GP{32 public abstract class Function : ItemBase, IFunction{33 private List<List< IFunction>> allowedSubFunctions = new List<List<IFunction>>();28 namespace HeuristicLab.Encodings.SymbolicExpressionTree { 29 public abstract class Symbol { 30 private List<List<Symbol>> allowedSubFunctions = new List<List<Symbol>>(); 34 31 private int minArity = -1; 35 32 private int maxArity = -1; … … 88 85 if (allowedSubFunctions.Count > 0) { 89 86 // 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])); 91 88 } else { 92 89 // add empty list 93 allowedSubFunctions.Add(new List< IFunction>());90 allowedSubFunctions.Add(new List<Symbol>()); 94 91 } 95 92 } … … 107 104 FireChanged(); 108 105 } 109 Debug.Assert(minTreeSize > 0);106 // Debug.Assert(minTreeSize > 0); 110 107 return minTreeSize; 111 108 } … … 118 115 FireChanged(); 119 116 } 120 Debug.Assert(minTreeHeight > 0);117 // Debug.Assert(minTreeHeight > 0); 121 118 return minTreeHeight; 122 119 }
Note: See TracChangeset
for help on using the changeset viewer.