Changeset 10291 for trunk/sources/HeuristicLab.Encodings.RealVectorEncoding
- Timestamp:
- 01/07/14 11:14:18 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorCreator.cs
r9456 r10291 34 34 [Item("RealVectorCreator", "A base class for operators creating real-valued vectors.")] 35 35 [StorableClass] 36 public abstract class RealVectorCreator : SingleSuccessorOperator, IRealVectorCreator, IStochasticOperator {36 public abstract class RealVectorCreator : InstrumentedOperator, IRealVectorCreator, IStochasticOperator { 37 37 public override bool CanChangeName { 38 38 get { return false; } … … 63 63 } 64 64 65 public sealed override IOperation Apply() {65 public sealed override IOperation InstrumentedApply() { 66 66 RealVectorParameter.ActualValue = Create(RandomParameter.ActualValue, LengthParameter.ActualValue, BoundsParameter.ActualValue); 67 return base. Apply();67 return base.InstrumentedApply(); 68 68 } 69 69 -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorCrossover.cs
r9456 r10291 35 35 [Item("RealVectorCrossover", "A base class for operators that perform a crossover of real-valued vectors.")] 36 36 [StorableClass] 37 public abstract class RealVectorCrossover : SingleSuccessorOperator, IRealVectorCrossover, IStochasticOperator {37 public abstract class RealVectorCrossover : InstrumentedOperator, IRealVectorCrossover, IStochasticOperator { 38 38 public override bool CanChangeName { 39 39 get { return false; } … … 96 96 } 97 97 98 public sealed override IOperation Apply() {98 public sealed override IOperation InstrumentedApply() { 99 99 RealVector result = Cross(RandomParameter.ActualValue, ParentsParameter.ActualValue); 100 100 ChildParameter.ActualValue = result; 101 101 102 IOperation successor = base. Apply();102 IOperation successor = base.InstrumentedApply(); 103 103 if (BoundsChecker != null) { 104 104 IOperation checkerOperation = ExecutionContext.CreateChildOperation(BoundsChecker); -
trunk/sources/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorManipulator.cs
r9456 r10291 35 35 [Item("RealVectorManipulator", "A base class for operators that manipulate real-valued vectors.")] 36 36 [StorableClass] 37 public abstract class RealVectorManipulator : SingleSuccessorOperator, IRealVectorManipulator, IStochasticOperator {37 public abstract class RealVectorManipulator : InstrumentedOperator, IRealVectorManipulator, IStochasticOperator { 38 38 public override bool CanChangeName { 39 39 get { return false; } … … 90 90 } 91 91 92 public sealed override IOperation Apply() {92 public sealed override IOperation InstrumentedApply() { 93 93 RealVector vector = RealVectorParameter.ActualValue; 94 94 Manipulate(RandomParameter.ActualValue, vector); 95 95 96 IOperation successor = base. Apply();96 IOperation successor = base.InstrumentedApply(); 97 97 if (BoundsChecker != null) { 98 98 IOperation checkerOperation = ExecutionContext.CreateChildOperation(BoundsChecker);
Note: See TracChangeset
for help on using the changeset viewer.