Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 19:47:39 (14 years ago)
Author:
mkommend
Message:

Refactored ExternalEvaluation.* and fixed some errors and warnings (ticket #922).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CloningRefactoring/HeuristicLab.Problems.ExternalEvaluation.GP/3.3/Grammar/FullFunctionalExpressionGrammar.cs

    r4364 r4682  
    2121
    2222using System.Collections.Generic;
    23 using System.Linq;
     23using HeuristicLab.Common;
    2424using HeuristicLab.Core;
    2525using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
     
    3333    [Storable]
    3434    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    }
    3541
    3642    public FullFunctionalExpressionGrammar()
     
    7581      var unaryFunctionSymbols = new List<Symbol>() { sin, cos, tan, log, exp, not };
    7682      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 };
    7884
    7985      foreach (var symb in allSymbols)
Note: See TracChangeset for help on using the changeset viewer.