Last change
on this file since 16574 was
16574,
checked in by gkronber, 5 years ago
|
#2520: changed HeuristicLab.MetaOptimization addon to compile with new HL.Persistence
|
File size:
1.4 KB
|
Line | |
---|
1 | using HeuristicLab.Common;
|
---|
2 | using HeuristicLab.Core;
|
---|
3 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
4 | using HEAL.Attic;
|
---|
5 |
|
---|
6 | namespace HeuristicLab.Problems.MetaOptimization {
|
---|
7 | // todo: item name/descr...
|
---|
8 | [StorableType("71AA1D18-73D0-4ADA-A0EF-DB94ED6A94D3")]
|
---|
9 | public class ParameterConfigurationAllPositionsManipulator : ParameterConfigurationManipulator {
|
---|
10 |
|
---|
11 | public ParameterConfigurationAllPositionsManipulator() { }
|
---|
12 | [StorableConstructor]
|
---|
13 | protected ParameterConfigurationAllPositionsManipulator(StorableConstructorFlag _) : base(_) { }
|
---|
14 | protected ParameterConfigurationAllPositionsManipulator(ParameterConfigurationAllPositionsManipulator original, Cloner cloner)
|
---|
15 | : base(original, cloner) {
|
---|
16 | }
|
---|
17 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
18 | return new ParameterConfigurationAllPositionsManipulator(this, cloner);
|
---|
19 | }
|
---|
20 |
|
---|
21 | public sealed override IOperation Apply() {
|
---|
22 | Apply(RandomParameter.ActualValue, ParameterConfigurationTreeParameter.ActualValue, IntValueManipulatorParameter.ActualValue, DoubleValueManipulatorParameter.ActualValue);
|
---|
23 | return base.Apply();
|
---|
24 | }
|
---|
25 |
|
---|
26 | public static new void Apply(IRandom random, IValueConfiguration configuration, IIntValueManipulator intValueManipulator, IDoubleValueManipulator doubleValueManipulator) {
|
---|
27 | configuration.Mutate(random, Mutate, intValueManipulator, doubleValueManipulator);
|
---|
28 | }
|
---|
29 | }
|
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.