Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer/IntegerConstantErcValue.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: 792 bytes
Line 
1namespace HeuristicLab.Problems.ProgramSynthesis.Base.Erc.Integer {
2  using Common;
3  using Data;
4  using Persistence.Default.CompositeSerializers.Storable;
5
6  [StorableClass]
7  public class IntegerConstantErcValue : ConstantsWeightedErcValue<int, IntArray> {
8
9    public IntegerConstantErcValue() : this(new int[0]) { }
10
11    public IntegerConstantErcValue(params int[] constants) : base(new IntArray(constants)) { }
12
13    [StorableConstructor]
14    public IntegerConstantErcValue(bool deserializing) : base(deserializing) { }
15
16    public IntegerConstantErcValue(IntegerConstantErcValue origin, Cloner cloner) : base(origin, cloner) {
17    }
18
19    public override IDeepCloneable Clone(Cloner cloner) {
20      return new IntegerConstantErcValue(this, cloner);
21    }
22  }
23}
Note: See TracBrowser for help on using the repository browser.