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.IntegerVectorEncoding/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorCreator.cs

    r9456 r10291  
    3434  [Item("IntegerVectorCreator", "A base class for operators creating int-valued vectors.")]
    3535  [StorableClass]
    36   public abstract class IntegerVectorCreator : SingleSuccessorOperator, IIntegerVectorCreator, IStochasticOperator {
     36  public abstract class IntegerVectorCreator : InstrumentedOperator, IIntegerVectorCreator, IStochasticOperator {
    3737    public override bool CanChangeName {
    3838      get { return false; }
     
    7979    #endregion
    8080
    81     public sealed override IOperation Apply() {
     81    public sealed override IOperation InstrumentedApply() {
    8282      IntegerVectorParameter.ActualValue = Create(RandomParameter.ActualValue, LengthParameter.ActualValue, BoundsParameter.ActualValue);
    83       return base.Apply();
     83      return base.InstrumentedApply();
    8484    }
    8585
  • trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorCrossover.cs

    r9456 r10291  
    5858    }
    5959
    60     public sealed override IOperation Apply() {
     60    public sealed override IOperation InstrumentedApply() {
    6161      ChildParameter.ActualValue = Cross(RandomParameter.ActualValue, ParentsParameter.ActualValue);
    62       return base.Apply();
     62      return base.InstrumentedApply();
    6363    }
    6464
  • trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorManipulator.cs

    r9456 r10291  
    5252    }
    5353
    54     public sealed override IOperation Apply() {
     54    public sealed override IOperation InstrumentedApply() {
    5555      Manipulate(RandomParameter.ActualValue, IntegerVectorParameter.ActualValue);
    56       return base.Apply();
     56      return base.InstrumentedApply();
    5757    }
    5858
  • trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorOperator.cs

    r9456 r10291  
    2929  [Item("IntegerVectorOperator", "Base class for integer vectoro operators.")]
    3030  [StorableClass]
    31   public abstract class IntegerVectorOperator : SingleSuccessorOperator, IIntegerVectorOperator {
     31  public abstract class IntegerVectorOperator : InstrumentedOperator, IIntegerVectorOperator {
    3232
    3333    [StorableConstructor]
Note: See TracChangeset for help on using the changeset viewer.