Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/IntegerVector/IntegerVectorConstantsErcValue.cs @ 14897

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

#2665 Dynamic ErcValues, Separate Push from BenchmarkSuite Push

File size: 1.1 KB
Line 
1using System.Linq;
2
3namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc.IntegerVector {
4  using HeuristicLab.Common;
5  using HeuristicLab.Data;
6  using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
7
8  [StorableClass]
9  public class IntegerVectorConstantsErcValue : VectorConstantsErcValue<int, IntArray> {
10    public IntegerVectorConstantsErcValue() {
11    }
12
13    public IntegerVectorConstantsErcValue(params int[][] values)
14      : this(true, values) {
15    }
16
17    public IntegerVectorConstantsErcValue(bool isEnabled, params int[][] values)
18      : base(isEnabled, values.Select(v => new IntArray(v)).ToArray()) {
19    }
20
21    [StorableConstructor]
22    protected IntegerVectorConstantsErcValue(bool deserializing)
23      : base(deserializing) {
24    }
25
26    public IntegerVectorConstantsErcValue(IntegerVectorConstantsErcValue origin, Cloner cloner)
27      : base(origin, cloner) {
28    }
29
30    public override IDeepCloneable Clone(Cloner cloner) {
31      return new IntegerVectorConstantsErcValue(this, cloner);
32    }
33  }
34}
Note: See TracBrowser for help on using the repository browser.