- Timestamp:
- 03/05/14 14:48:13 (11 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing
- Property svn:mergeinfo changed
-
branches/DataPreprocessing/HeuristicLab.Encodings.RealVectorEncoding/3.3/Crossovers/MultiRealVectorCrossover.cs
r9456 r10538 70 70 Operators.Add((IRealVectorCrossover)Activator.CreateInstance(type), true); 71 71 } 72 73 SelectedOperatorParameter.ActualName = "SelectedCrossoverOperator"; 72 74 } 73 75 … … 97 99 } 98 100 99 public override IOperation Apply() {101 public override IOperation InstrumentedApply() { 100 102 if (Operators.Count == 0) throw new InvalidOperationException(Name + ": Please add at least one real vector crossover to choose from."); 101 return base. Apply();103 return base.InstrumentedApply(); 102 104 } 103 105 } -
branches/DataPreprocessing/HeuristicLab.Encodings.RealVectorEncoding/3.3/Manipulators/MultiRealVectorManipulator.cs
r9456 r10538 62 62 Operators.Add(new PolynomialOnePositionManipulator()); 63 63 Operators.Add(new UniformOnePositionManipulator()); 64 65 SelectedOperatorParameter.ActualName = "SelectedManipulationOperator"; 64 66 } 65 67 … … 88 90 } 89 91 90 public override IOperation Apply() {92 public override IOperation InstrumentedApply() { 91 93 if (Operators.Count == 0) throw new InvalidOperationException(Name + ": Please add at least one real vector manipulator to choose from."); 92 return base. Apply();94 return base.InstrumentedApply(); 93 95 } 94 96 } -
branches/DataPreprocessing/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorCreator.cs
r9456 r10538 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 -
branches/DataPreprocessing/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorCrossover.cs
r9456 r10538 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); -
branches/DataPreprocessing/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorManipulator.cs
r9456 r10538 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.