Last change
on this file since 17042 was
14952,
checked in by pkimmesw, 8 years ago
|
#2665 Added IsNoop to Expression, Made Expressions storable, Fixed Debugger, Fixed and improved problem data and result visualisation, Added custom ErcOption view, Added problem difficulty to problem data name
|
File size:
1.1 KB
|
Line | |
---|
1 | using System.Linq;
|
---|
2 |
|
---|
3 | namespace 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 IntegerVectorConstantsErc : VectorConstantsErc<int, IntArray> {
|
---|
10 | public IntegerVectorConstantsErc() : this(new int[0][]) { }
|
---|
11 |
|
---|
12 | public IntegerVectorConstantsErc(params int[][] values) : this(true, 1d, values) { }
|
---|
13 |
|
---|
14 | public IntegerVectorConstantsErc(bool isEnabled, double weight = 1d, params int[][] values)
|
---|
15 | : base(isEnabled, weight, values.Select(v => new IntArray(v)).ToArray()) {
|
---|
16 | Name = "Integer vector constants";
|
---|
17 | }
|
---|
18 |
|
---|
19 | [StorableConstructor]
|
---|
20 | protected IntegerVectorConstantsErc(bool deserializing)
|
---|
21 | : base(deserializing) {
|
---|
22 | }
|
---|
23 |
|
---|
24 | public IntegerVectorConstantsErc(IntegerVectorConstantsErc origin, Cloner cloner)
|
---|
25 | : base(origin, cloner) {
|
---|
26 | }
|
---|
27 |
|
---|
28 | public override IDeepCloneable Clone(Cloner cloner) {
|
---|
29 | return new IntegerVectorConstantsErc(this, cloner);
|
---|
30 | }
|
---|
31 | }
|
---|
32 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.