Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Float/FloatConstantErcValue.cs @ 14898

Last change on this file since 14898 was 14898, checked in by pkimmesw, 7 years ago

#2665 Set name properties of ERC values

File size: 836 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Float {
2  using Common;
3  using Data;
4  using Persistence.Default.CompositeSerializers.Storable;
5
6  [StorableClass]
7  public class FloatConstantErcValue : ConstantsWeightedErcValue<double, DoubleArray> {
8
9    public FloatConstantErcValue() : this(new double[0]) { }
10
11    public FloatConstantErcValue(params double[] constants)
12      : base(new DoubleArray(constants)) {
13      Name = "Float constants";
14    }
15
16    [StorableConstructor]
17    public FloatConstantErcValue(bool deserializing) : base(deserializing) { }
18
19    public FloatConstantErcValue(FloatConstantErcValue origin, Cloner cloner) : base(origin, cloner) {
20    }
21
22    public override IDeepCloneable Clone(Cloner cloner) {
23      return new FloatConstantErcValue(this, cloner);
24    }
25  }
26}
Note: See TracBrowser for help on using the repository browser.