Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/11/11 15:03:46 (14 years ago)
Author:
gkronber
Message:

Merged changes from trunk to data analysis exploration branch and added fractional distance metric evaluator. #1142

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis/3.3/Symbolic/BasicExpressionGrammar.cs

    r4193 r5275  
    2626using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2727using HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols;
     28using HeuristicLab.Common;
    2829namespace HeuristicLab.Problems.DataAnalysis.Symbolic {
    2930  [StorableClass]
     
    3334    private HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols.Variable variableSymbol;
    3435
     36    [StorableConstructor]
     37    protected BasicExpressionGrammar(bool deserializing) : base(deserializing) { }
     38    protected BasicExpressionGrammar(BasicExpressionGrammar original, Cloner cloner)
     39      : base(original, cloner) {
     40      foreach (var symb in Symbols) {
     41        var varSym = symb as HeuristicLab.Problems.DataAnalysis.Symbolic.Symbols.Variable;
     42        if (varSym != null) this.variableSymbol = varSym;
     43        break;
     44      }
     45    }
    3546    public BasicExpressionGrammar()
    3647      : base() {
     
    3849    }
    3950
    40     [StorableConstructor]
    41     protected BasicExpressionGrammar(bool deserializing) : base(deserializing) { }
     51    public override IDeepCloneable Clone(Cloner cloner) {
     52      return new BasicExpressionGrammar(this, cloner);
     53    }
    4254
    4355    private void Initialize() {
Note: See TracChangeset for help on using the changeset viewer.