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 | |
---|
1 | using HeuristicLab.Common;
|
---|
2 | using HeuristicLab.Core;
|
---|
3 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
4 |
|
---|
5 | namespace 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.