- Timestamp:
- 02/20/14 14:56:39 (11 years ago)
- Location:
- branches/LogResidualEvaluator
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LogResidualEvaluator
- Property svn:mergeinfo changed
-
branches/LogResidualEvaluator/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorCreator.cs
r9456 r10483 34 34 [Item("BinaryVectorCreator", "A base class for operators creating bool-valued vectors.")] 35 35 [StorableClass] 36 public abstract class BinaryVectorCreator : SingleSuccessorOperator, IBinaryVectorCreator, IStochasticOperator {36 public abstract class BinaryVectorCreator : InstrumentedOperator, IBinaryVectorCreator, IStochasticOperator { 37 37 public override bool CanChangeName { 38 38 get { return false; } … … 58 58 } 59 59 60 public sealed override IOperation Apply() {60 public sealed override IOperation InstrumentedApply() { 61 61 BinaryVectorParameter.ActualValue = Create(RandomParameter.ActualValue, LengthParameter.ActualValue); 62 return base. Apply();62 return base.InstrumentedApply(); 63 63 } 64 64 -
branches/LogResidualEvaluator/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorCrossover.cs
r9456 r10483 33 33 [Item("BinaryVectorCrossover", "A base class for operators that perform a crossover of bool-valued vectors.")] 34 34 [StorableClass] 35 public abstract class BinaryVectorCrossover : SingleSuccessorOperator, IBinaryVectorCrossover, IStochasticOperator {35 public abstract class BinaryVectorCrossover : InstrumentedOperator, IBinaryVectorCrossover, IStochasticOperator { 36 36 public override bool CanChangeName { 37 37 get { return false; } … … 59 59 } 60 60 61 public sealed override IOperation Apply() {61 public sealed override IOperation InstrumentedApply() { 62 62 ChildParameter.ActualValue = Cross(RandomParameter.ActualValue, ParentsParameter.ActualValue); 63 return base. Apply();63 return base.InstrumentedApply(); 64 64 } 65 65 -
branches/LogResidualEvaluator/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVectorManipulator.cs
r9456 r10483 33 33 [Item("BinaryVectorManipulator", "A base class for operators that manipulate bool-valued vectors.")] 34 34 [StorableClass] 35 public abstract class BinaryVectorManipulator : SingleSuccessorOperator, IBinaryVectorManipulator, IStochasticOperator {35 public abstract class BinaryVectorManipulator : InstrumentedOperator, IBinaryVectorManipulator, IStochasticOperator { 36 36 public override bool CanChangeName { 37 37 get { return false; } … … 53 53 } 54 54 55 public sealed override IOperation Apply() {55 public sealed override IOperation InstrumentedApply() { 56 56 Manipulate(RandomParameter.ActualValue, BinaryVectorParameter.ActualValue); 57 return base. Apply();57 return base.InstrumentedApply(); 58 58 } 59 59 -
branches/LogResidualEvaluator/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/Crossovers/MultiBinaryVectorCrossover.cs
r9456 r10483 64 64 Operators.Add((IBinaryVectorCrossover)Activator.CreateInstance(type), true); 65 65 } 66 67 SelectedOperatorParameter.ActualName = "SelectedCrossoverOperator"; 66 68 } 67 69 … … 90 92 } 91 93 92 public override IOperation Apply() {94 public override IOperation InstrumentedApply() { 93 95 if (Operators.Count == 0) throw new InvalidOperationException(Name + ": Please add at least one binary vector crossover to choose from."); 94 return base. Apply();96 return base.InstrumentedApply(); 95 97 } 96 98 }
Note: See TracChangeset
for help on using the changeset viewer.