Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/07/14 11:14:18 (11 years ago)
Author:
mkommend
Message:

#2119: Added interface for instrumented operators and adapted problem and encoding specific operators to provide instrumentation capabilities.

Location:
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/FullTreeCreator.cs

    r9456 r10291  
    9494    }
    9595
    96     public override IOperation Apply() {
     96    public override IOperation InstrumentedApply() {
    9797      if (ClonedSymbolicExpressionTreeGrammarParameter.ActualValue == null) {
    9898        SymbolicExpressionTreeGrammarParameter.ActualValue.ReadOnly = true;
     
    104104          (ISymbolicExpressionGrammar)SymbolicExpressionTreeGrammarParameter.ActualValue.Clone()));
    105105      }
    106       return base.Apply();
     106      return base.InstrumentedApply();
    107107    }
    108108
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/GrowTreeCreator.cs

    r9456 r10291  
    9494    }
    9595
    96     public override IOperation Apply() {
     96    public override IOperation InstrumentedApply() {
    9797      if (ClonedSymbolicExpressionTreeGrammarParameter.ActualValue == null) {
    9898        SymbolicExpressionTreeGrammarParameter.ActualValue.ReadOnly = true;
     
    104104          (ISymbolicExpressionGrammar)SymbolicExpressionTreeGrammarParameter.ActualValue.Clone()));
    105105      }
    106       return base.Apply();
     106      return base.InstrumentedApply();
    107107    }
    108108
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/ProbabilisticTreeCreator.cs

    r9456 r10291  
    8787    }
    8888
    89     public override IOperation Apply() {
     89    public override IOperation InstrumentedApply() {
    9090      if (ClonedSymbolicExpressionTreeGrammarParameter.ActualValue == null) {
    9191        SymbolicExpressionTreeGrammarParameter.ActualValue.ReadOnly = true;
     
    9696        globalScope.Variables.Add(new Variable(ClonedSymbolicExpressionTreeGrammarParameterName, (ISymbolicExpressionGrammar)SymbolicExpressionTreeGrammarParameter.ActualValue.Clone()));
    9797      }
    98       return base.Apply();
     98      return base.InstrumentedApply();
    9999    }
    100100
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/RampedHalfAndHalfTreeCreator.cs

    r9456 r10291  
    9595    }
    9696
    97     public override IOperation Apply() {
     97    public override IOperation InstrumentedApply() {
    9898      if (ClonedSymbolicExpressionTreeGrammarParameter.ActualValue == null) {
    9999        SymbolicExpressionTreeGrammarParameter.ActualValue.ReadOnly = true;
     
    105105          (ISymbolicExpressionGrammar)SymbolicExpressionTreeGrammarParameter.ActualValue.Clone()));
    106106      }
    107       return base.Apply();
     107      return base.InstrumentedApply();
    108108    }
    109109
  • trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/SymbolicExpressionTreeCreator.cs

    r9456 r10291  
    5454    }
    5555
    56     public override IOperation Apply() {
     56    public override IOperation InstrumentedApply() {
    5757      SymbolicExpressionTree = Create(Random);
    58       return base.Apply();
     58      return base.InstrumentedApply();
    5959    }
    6060
Note: See TracChangeset for help on using the changeset viewer.