Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/17/14 18:52:37 (9 years ago)
Author:
bburlacu
Message:

#1772: Fixed cloning in tracking operators for symbolic data analysis. Added unit tests (in progress).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SymbolicDataAnalysisExpressionBeforeManipulatorOperator.cs

    r11387 r11694  
    2121
    2222using System.Linq;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2526using HeuristicLab.EvolutionTracking;
     27using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2628
    2729namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    2830  public class SymbolicDataAnalysisExpressionBeforeManipulatorOperator : BeforeManipulatorOperator<ISymbolicExpressionTree> {
     31    public SymbolicDataAnalysisExpressionBeforeManipulatorOperator() { }
     32
     33    protected SymbolicDataAnalysisExpressionBeforeManipulatorOperator(SymbolicDataAnalysisExpressionBeforeManipulatorOperator original, Cloner cloner)
     34      : base(original, cloner) {
     35    }
     36
     37    public override IDeepCloneable Clone(Cloner cloner) {
     38      return new SymbolicDataAnalysisExpressionBeforeManipulatorOperator(this, cloner);
     39    }
     40
     41    [StorableConstructor]
     42    protected SymbolicDataAnalysisExpressionBeforeManipulatorOperator(bool deserializing) : base(deserializing) { }
     43
    2944    public override IOperation Apply() {
    3045      // the call below does the following things:
Note: See TracChangeset for help on using the changeset viewer.