Ignore:
Timestamp:
01/07/14 11:14:18 (6 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.BinaryVectorEncoding/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorCreator.cs

    r9456 r10291  
    3434  [Item("BinaryVectorCreator", "A base class for operators creating bool-valued vectors.")]
    3535  [StorableClass]
    36   public abstract class BinaryVectorCreator : SingleSuccessorOperator, IBinaryVectorCreator, IStochasticOperator {
     36  public abstract class BinaryVectorCreator : InstrumentedOperator, IBinaryVectorCreator, IStochasticOperator {
    3737    public override bool CanChangeName {
    3838      get { return false; }
     
    5858    }
    5959
    60     public sealed override IOperation Apply() {
     60    public sealed override IOperation InstrumentedApply() {
    6161      BinaryVectorParameter.ActualValue = Create(RandomParameter.ActualValue, LengthParameter.ActualValue);
    62       return base.Apply();
     62      return base.InstrumentedApply();
    6363    }
    6464
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorCrossover.cs

    r9456 r10291  
    3333  [Item("BinaryVectorCrossover", "A base class for operators that perform a crossover of bool-valued vectors.")]
    3434  [StorableClass]
    35   public abstract class BinaryVectorCrossover : SingleSuccessorOperator, IBinaryVectorCrossover, IStochasticOperator {
     35  public abstract class BinaryVectorCrossover : InstrumentedOperator, IBinaryVectorCrossover, IStochasticOperator {
    3636    public override bool CanChangeName {
    3737      get { return false; }
     
    5959    }
    6060
    61     public sealed override IOperation Apply() {
     61    public sealed override IOperation InstrumentedApply() {
    6262      ChildParameter.ActualValue = Cross(RandomParameter.ActualValue, ParentsParameter.ActualValue);
    63       return base.Apply();
     63      return base.InstrumentedApply();
    6464    }
    6565
  • trunk/sources/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorManipulator.cs

    r9456 r10291  
    3333  [Item("BinaryVectorManipulator", "A base class for operators that manipulate bool-valued vectors.")]
    3434  [StorableClass]
    35   public abstract class BinaryVectorManipulator : SingleSuccessorOperator, IBinaryVectorManipulator, IStochasticOperator {
     35  public abstract class BinaryVectorManipulator : InstrumentedOperator, IBinaryVectorManipulator, IStochasticOperator {
    3636    public override bool CanChangeName {
    3737      get { return false; }
     
    5353    }
    5454
    55     public sealed override IOperation Apply() {
     55    public sealed override IOperation InstrumentedApply() {
    5656      Manipulate(RandomParameter.ActualValue, BinaryVectorParameter.ActualValue);
    57       return base.Apply();
     57      return base.InstrumentedApply();
    5858    }
    5959
Note: See TracChangeset for help on using the changeset viewer.