Changeset 6569 for branches/QAPAlgorithms/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/Grammars.cs
- Timestamp:
- 07/17/11 22:51:11 (13 years ago)
- Location:
- branches/QAPAlgorithms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/QAPAlgorithms
- Property svn:ignore
-
old new 12 12 *.psess 13 13 *.vsp 14 *.docstates
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/QAPAlgorithms/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Tests/Grammars.cs
r5809 r6569 27 27 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding_3._4.Tests { 28 28 public static class Grammars { 29 30 [StorableClass] 29 31 private class Addition : Symbol { 32 [StorableConstructor] 33 protected Addition(bool deserializing) : base(deserializing) { } 30 34 protected Addition(Addition original, Cloner cloner) : base(original, cloner) { } 31 35 public Addition() : base("Addition", "") { } … … 34 38 } 35 39 } 40 41 [StorableClass] 36 42 private class Subtraction : Symbol { 43 [StorableConstructor] 44 protected Subtraction(bool deserializing) : base(deserializing) { } 37 45 protected Subtraction(Subtraction original, Cloner cloner) : base(original, cloner) { } 38 46 public Subtraction() : base("Subtraction", "") { } … … 41 49 } 42 50 } 51 52 [StorableClass] 43 53 private class Multiplication : Symbol { 54 [StorableConstructor] 55 protected Multiplication(bool deserializing) : base(deserializing) { } 44 56 protected Multiplication(Multiplication original, Cloner cloner) : base(original, cloner) { } 45 57 public Multiplication() : base("Multiplication", "") { } … … 48 60 } 49 61 } 62 63 [StorableClass] 50 64 private class Division : Symbol { 65 [StorableConstructor] 66 protected Division(bool deserializing) : base(deserializing) { } 51 67 protected Division(Division original, Cloner cloner) : base(original, cloner) { } 52 68 public Division() : base("Division", "") { } … … 55 71 } 56 72 } 73 74 [StorableClass] 57 75 private class Terminal : Symbol { 76 [StorableConstructor] 77 protected Terminal(bool deserializing) : base(deserializing) { } 58 78 protected Terminal(Terminal original, Cloner cloner) : base(original, cloner) { } 59 79 public Terminal() : base("Terminal", "") { } … … 67 87 } 68 88 89 [StorableClass] 69 90 private class TerminalNode : SymbolicExpressionTreeTerminalNode { 70 91 public override bool HasLocalParameters { get { return true; } } … … 94 115 } 95 116 117 [StorableClass] 96 118 private class SimpleArithmeticGrammar : SymbolicExpressionGrammar { 119 [StorableConstructor] 120 protected SimpleArithmeticGrammar(bool deserializing) : base(deserializing) { } 97 121 protected SimpleArithmeticGrammar(SimpleArithmeticGrammar original, Cloner cloner) : base(original, cloner) { } 98 122 public SimpleArithmeticGrammar()
Note: See TracChangeset
for help on using the changeset viewer.