Changeset 5275 for branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate/3.3/Symbolic
- Timestamp:
- 01/11/11 15:03:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.MultiVariate/3.3/Symbolic/MultiVariateExpressionGrammar.cs
r4252 r5275 37 37 } 38 38 39 [StorableConstructor] 40 protected MultiVariateExpressionGrammar(bool deserializing) : base(deserializing) { } 41 protected MultiVariateExpressionGrammar(MultiVariateExpressionGrammar original, Cloner cloner) 42 : base(original, cloner) { 43 dimension = original.dimension; 44 } 39 45 public MultiVariateExpressionGrammar() : this(2) { } 40 41 46 public MultiVariateExpressionGrammar(int dimension) 42 47 : base() { … … 50 55 51 56 foreach (Symbol s in Symbols) { 52 if (s != StartSymbol) 57 if (s != StartSymbol) 53 58 for (int i = 0; i < n; i++) { 54 59 SetAllowedChild(StartSymbol, s, i); … … 58 63 59 64 public override IDeepCloneable Clone(Cloner cloner) { 60 MultiVariateExpressionGrammar clone = (MultiVariateExpressionGrammar)base.Clone(cloner); 61 clone.dimension = this.dimension; 62 return clone; 65 return new MultiVariateExpressionGrammar(this, cloner); 63 66 } 64 67 }
Note: See TracChangeset
for help on using the changeset viewer.