Changeset 4682 for branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/Grammar/FullFunctionalExpressionGrammar.cs
- Timestamp:
- 10/29/10 19:47:39 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/Grammar/FullFunctionalExpressionGrammar.cs
r4364 r4682 21 21 22 22 using System.Collections.Generic; 23 using System.Linq;23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; … … 33 33 [Storable] 34 34 private HeuristicLab.Problems.ExternalEvaluation.GP.Variable variableSymbol; 35 [StorableConstructor] 36 protected FullFunctionalExpressionGrammar(bool deserializing) : base(deserializing) { } 37 protected FullFunctionalExpressionGrammar(FullFunctionalExpressionGrammar original, Cloner cloner) : base(original, cloner) { } 38 public override IDeepCloneable Clone(Cloner cloner) { 39 return new FullFunctionalExpressionGrammar(this, cloner); 40 } 35 41 36 42 public FullFunctionalExpressionGrammar() … … 75 81 var unaryFunctionSymbols = new List<Symbol>() { sin, cos, tan, log, exp, not }; 76 82 var binaryFunctionSymbols = new List<Symbol>() { gt, lt }; 77 var functionSymbols = new List<Symbol>() { add, sub, mul, div, mean, and, or };83 var functionSymbols = new List<Symbol>() { add, sub, mul, div, mean, and, or }; 78 84 79 85 foreach (var symb in allSymbols)
Note: See TracChangeset
for help on using the changeset viewer.