Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization/3.3/Encoding/Manipulators/ParameterConfigurationAllPositionsManipulator.cs @ 12417

Last change on this file since 12417 was 7242, checked in by ascheibe, 13 years ago

#1215 adapted to static item image change and fixed a compiler warning

File size: 1.4 KB
Line 
1using HeuristicLab.Common;
2using HeuristicLab.Core;
3using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
4
5namespace HeuristicLab.Problems.MetaOptimization {
6  // todo: item name/descr...
7  [StorableClass]
8  public class ParameterConfigurationAllPositionsManipulator : ParameterConfigurationManipulator {
9
10    public ParameterConfigurationAllPositionsManipulator() { }
11    [StorableConstructor]
12    protected ParameterConfigurationAllPositionsManipulator(bool deserializing) : base(deserializing) { }
13    protected ParameterConfigurationAllPositionsManipulator(ParameterConfigurationAllPositionsManipulator original, Cloner cloner)
14      : base(original, cloner) {
15    }
16    public override IDeepCloneable Clone(Cloner cloner) {
17      return new ParameterConfigurationAllPositionsManipulator(this, cloner);
18    }
19
20    public sealed override IOperation Apply() {
21      Apply(RandomParameter.ActualValue, ParameterConfigurationTreeParameter.ActualValue, IntValueManipulatorParameter.ActualValue, DoubleValueManipulatorParameter.ActualValue);
22      return base.Apply();
23    }
24
25    public static new void Apply(IRandom random, IValueConfiguration configuration, IIntValueManipulator intValueManipulator, IDoubleValueManipulator doubleValueManipulator) {
26      configuration.Mutate(random, Mutate, intValueManipulator, doubleValueManipulator);
27    }
28  }
29}
Note: See TracBrowser for help on using the repository browser.