Changeset 5303 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/Manipulators/ParameterConfigurationManipulator.cs
- Timestamp:
- 01/17/11 01:04:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/Manipulators/ParameterConfigurationManipulator.cs
r5277 r5303 14 14 // todo: item name/descr... 15 15 [StorableClass] 16 public class ParameterConfigurationManipulator : SingleSuccessorOperator, IParameterConfigurationManipulator, IStochasticOperator {16 public abstract class ParameterConfigurationManipulator : SingleSuccessorOperator, IParameterConfigurationManipulator, IStochasticOperator { 17 17 public override bool CanChangeName { 18 18 get { return false; } … … 44 44 : base(original, cloner) { 45 45 } 46 public override IDeepCloneable Clone(Cloner cloner) {47 return new ParameterConfigurationManipulator(this, cloner);48 }49 46 50 public sealedoverride IOperation Apply() {47 public override IOperation Apply() { 51 48 Apply(RandomParameter.ActualValue, ParameterConfigurationTreeParameter.ActualValue, IntValueManipulatorParameter.ActualValue, DoubleValueManipulatorParameter.ActualValue); 52 49 return base.Apply(); … … 57 54 } 58 55 59 pr ivatestatic void Mutate(IRandom random, IOptimizable configuration, IIntValueManipulator intValueManipulator, IDoubleValueManipulator doubleValueManipulator) {56 protected static void Mutate(IRandom random, IOptimizable configuration, IIntValueManipulator intValueManipulator, IDoubleValueManipulator doubleValueManipulator) { 60 57 var vc = configuration as IValueConfiguration; 61 58 var pc = configuration as IParameterConfiguration;
Note: See TracChangeset
for help on using the changeset viewer.