- Timestamp:
- 03/05/14 14:48:13 (11 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing
- Property svn:mergeinfo changed
-
branches/DataPreprocessing/HeuristicLab.Encodings.PermutationEncoding
- Property svn:mergeinfo changed
-
branches/DataPreprocessing/HeuristicLab.Encodings.PermutationEncoding/3.3/Creators/RandomPermutationCreator.cs
r9456 r10538 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 } -
branches/DataPreprocessing/HeuristicLab.Encodings.PermutationEncoding/3.3/Crossovers/MultiPermutationCrossover.cs
r9456 r10538 64 64 Operators.Add((IPermutationCrossover)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 permutation crossover to choose from."); 94 return base. Apply();96 return base.InstrumentedApply(); 95 97 } 96 98 } -
branches/DataPreprocessing/HeuristicLab.Encodings.PermutationEncoding/3.3/Manipulators/MultiPermutationManipulator.cs
r9456 r10538 57 57 Operators.Add((IPermutationManipulator)Activator.CreateInstance(type), true); 58 58 } 59 60 SelectedOperatorParameter.ActualName = "SelectedManipulationOperator"; 59 61 } 60 62 … … 82 84 } 83 85 84 public override IOperation Apply() {86 public override IOperation InstrumentedApply() { 85 87 if (Operators.Count == 0) throw new InvalidOperationException(Name + ": Please add at least one permutation manipulator to choose from."); 86 return base. Apply();88 return base.InstrumentedApply(); 87 89 } 88 90 } -
branches/DataPreprocessing/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationCrossover.cs
r9456 r10538 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 -
branches/DataPreprocessing/HeuristicLab.Encodings.PermutationEncoding/3.3/PermutationManipulator.cs
r9456 r10538 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.