- Timestamp:
- 01/07/14 11:14:18 (11 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/Creators/RandomPermutationCreator.cs
r9456 r10291 34 34 [Item("RandomPermutationCreator", "An operator which creates a new random permutation of integer values.")] 35 35 [StorableClass] 36 public sealed class RandomPermutationCreator : SingleSuccessorOperator, IPermutationCreator, IStochasticOperator {36 public sealed class RandomPermutationCreator : InstrumentedOperator, IPermutationCreator, IStochasticOperator { 37 37 public override bool CanChangeName { 38 38 get { return false; } … … 72 72 } 73 73 74 public override IOperation Apply() {74 public override IOperation InstrumentedApply() { 75 75 PermutationParameter.ActualValue = new Permutation(PermutationType, LengthParameter.ActualValue.Value, RandomParameter.ActualValue); 76 return base. Apply();76 return base.InstrumentedApply(); 77 77 } 78 78 } -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationCrossover.cs
r9456 r10291 33 33 [Item("PermutationCrossover", "A base class for permutation crossover operators.")] 34 34 [StorableClass] 35 public abstract class PermutationCrossover : SingleSuccessorOperator, IPermutationCrossover, IStochasticOperator {35 public abstract class PermutationCrossover : InstrumentedOperator, IPermutationCrossover, IStochasticOperator { 36 36 public override bool CanChangeName { 37 37 get { return false; } … … 60 60 } 61 61 62 public sealed override IOperation Apply() {62 public sealed override IOperation InstrumentedApply() { 63 63 ChildParameter.ActualValue = Cross(RandomParameter.ActualValue, ParentsParameter.ActualValue); 64 return base. Apply();64 return base.InstrumentedApply(); 65 65 } 66 66 -
trunk/sources/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationManipulator.cs
r9456 r10291 33 33 [Item("PermutationManipulator", "A base class for permutation manipulation operators.")] 34 34 [StorableClass] 35 public abstract class PermutationManipulator : SingleSuccessorOperator, IPermutationManipulator, IStochasticOperator {35 public abstract class PermutationManipulator : InstrumentedOperator, IPermutationManipulator, IStochasticOperator { 36 36 public override bool CanChangeName { 37 37 get { return false; } … … 54 54 } 55 55 56 public sealed override IOperation Apply() {56 public sealed override IOperation InstrumentedApply() { 57 57 Manipulate(RandomParameter.ActualValue, PermutationParameter.ActualValue); 58 return base. Apply();58 return base.InstrumentedApply(); 59 59 } 60 60
Note: See TracChangeset
for help on using the changeset viewer.