Changeset 3251 for trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/ArtificialAntExpressionGrammar.cs
- Timestamp:
- 04/01/10 20:44:56 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.ArtificialAnt/3.3/ArtificialAntExpressionGrammar.cs
r3238 r3251 26 26 using System.Linq; 27 27 using HeuristicLab.Core; 28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 29 namespace HeuristicLab.Problems.ArtificialAnt { 30 [StorableClass] 29 31 public class ArtificialAntExpressionGrammar : Item, ISymbolicExpressionGrammar { 30 32 … … 36 38 #region ISymbolicExpressionGrammar Members 37 39 40 [Storable] 38 41 private EmptySymbol startSymbol = new EmptySymbol(); 39 42 public Symbol StartSymbol { … … 41 44 } 42 45 46 [Storable] 43 47 private static List<Symbol> allSymbols = new List<Symbol>() { 44 48 new IfFoodAhead(), … … 49 53 new Right() 50 54 }; 55 [Storable] 51 56 private Dictionary<Type, Dictionary<int, IEnumerable<Symbol>>> allowedSymbols = new Dictionary<Type, Dictionary<int, IEnumerable<Symbol>>>() { 52 57 { … … 86 91 } 87 92 93 [Storable] 88 94 private Dictionary<Type, int> minLength = new Dictionary<Type, int>() { 89 95 {typeof(EmptySymbol), 1}, … … 99 105 } 100 106 107 [Storable] 101 108 private Dictionary<Type, int> maxLength = new Dictionary<Type, int>() { 102 109 {typeof(EmptySymbol), int.MaxValue}, … … 112 119 } 113 120 121 [Storable] 114 122 private Dictionary<Type, int> minDepth = new Dictionary<Type, int>() { 115 123 {typeof(EmptySymbol), 1}, … … 126 134 127 135 136 [Storable] 128 137 private Dictionary<Type, int> subTrees = new Dictionary<Type, int>() { 129 138 {typeof(EmptySymbol), 1},
Note: See TracChangeset
for help on using the changeset viewer.