Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis.Base/Erc/Integer/IntegerConstantErcValue.cs @ 14909

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

#2665 Fixed VectorExpression errors, Fixed BenchmarkSuite Problem Data View issues

File size: 982 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(false, 1d) { }
10
11    public IntegerConstantErcValue(params int[] constants) : this(true, 1d, constants) { }
12
13    public IntegerConstantErcValue(bool isEnabled, double weight = 1d, params int[] constants)
14      : base(isEnabled, new IntArray(constants), weight) {
15      Name = "Integer constants";
16    }
17
18    [StorableConstructor]
19    public IntegerConstantErcValue(bool deserializing) : base(deserializing) { }
20
21    public IntegerConstantErcValue(IntegerConstantErcValue origin, Cloner cloner) : base(origin, cloner) { }
22
23    public override IDeepCloneable Clone(Cloner cloner) {
24      return new IntegerConstantErcValue(this, cloner);
25    }
26  }
27}
Note: See TracBrowser for help on using the repository browser.