Changeset 14875 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Example.cs
- Timestamp:
- 04/18/17 01:15:25 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Example.cs
r14834 r14875 11 11 private static readonly char[] emptyChars = new char[0]; 12 12 private static readonly string[] emptyStrings = new string[0]; 13 private static readonly long[][] emptyIntegerVectors = new long[0][]; 14 private static readonly double[][] emptyFloatVectors = new double[0][]; 15 private static readonly bool[][] emptyBooleanVectors = new bool[0][]; 16 private static readonly string[][] emptyStringVectors = new string[0][]; 13 17 14 18 15 19 public Example() { 16 InputInt= emptyIntegers;20 this.InputInteger = emptyIntegers; 17 21 InputFloat = emptyFloats; 18 22 InputBoolean = emptyBooleans; 19 23 InputChar = emptyChars; 20 24 InputString = emptyStrings; 25 InputIntegerVector = emptyIntegerVectors; 26 InputFloatVector = emptyFloatVectors; 27 InputBooleanVector = emptyBooleanVectors; 28 InputStringVector = emptyStringVectors; 21 29 22 OutputInt= emptyIntegers;30 this.OutputInteger = emptyIntegers; 23 31 OutputFloat = emptyFloats; 24 32 OutputBoolean = emptyBooleans; 25 33 OutputChar = emptyChars; 26 34 OutputString = emptyStrings; 35 OutputIntegerVector = emptyIntegerVectors; 36 OutputFloatVector = emptyFloatVectors; 37 OutputBooleanVector = emptyBooleanVectors; 38 OutputStringVector = emptyStringVectors; 27 39 } 28 40 … … 32 44 33 45 InputBoolean = (bool[])origin.InputBoolean.Clone(); 34 InputInt = (long[])origin.InputInt.Clone();46 InputInteger = (long[])origin.InputInteger.Clone(); 35 47 InputFloat = (double[])origin.InputFloat.Clone(); 36 48 InputChar = (char[])origin.InputChar.Clone(); 37 49 InputString = (string[])origin.InputString.Clone(); 50 InputIntegerVector = (long[][])origin.InputIntegerVector.Clone(); 51 InputFloatVector = (double[][])origin.InputFloatVector.Clone(); 52 InputBooleanVector = (bool[][])origin.InputBooleanVector.Clone(); 53 InputStringVector = (string[][])origin.InputStringVector.Clone(); 38 54 39 55 OutputBoolean = (bool[])origin.OutputBoolean.Clone(); 40 OutputInt = (long[])origin.OutputInt.Clone();56 this.OutputInteger = (long[])origin.OutputInteger.Clone(); 41 57 OutputFloat = (double[])origin.OutputFloat.Clone(); 42 58 OutputChar = (char[])origin.OutputChar.Clone(); 43 59 OutputString = (string[])origin.OutputString.Clone(); 60 OutputIntegerVector = (long[][])origin.OutputIntegerVector.Clone(); 61 OutputFloatVector = (double[][])origin.OutputFloatVector.Clone(); 62 OutputBooleanVector = (bool[][])origin.OutputBooleanVector.Clone(); 63 OutputStringVector = (string[][])origin.OutputStringVector.Clone(); 44 64 } 45 65 … … 53 73 54 74 [Storable] 55 public long[] InputInt { get; set; }75 public long[] InputInteger { get; set; } 56 76 [Storable] 57 77 public double[] InputFloat { get; set; } … … 62 82 [Storable] 63 83 public string[] InputString { get; set; } 84 [Storable] 85 public long[][] InputIntegerVector { get; set; } 86 [Storable] 87 public double[][] InputFloatVector { get; set; } 88 [Storable] 89 public bool[][] InputBooleanVector { get; set; } 90 [Storable] 91 public string[][] InputStringVector { get; set; } 64 92 65 93 [Storable] 66 public long[] OutputInt { get; set; }94 public long[] OutputInteger { get; set; } 67 95 [Storable] 68 96 public double[] OutputFloat { get; set; } … … 73 101 [Storable] 74 102 public string[] OutputString { get; set; } 103 [Storable] 104 public long[][] OutputIntegerVector { get; set; } 105 [Storable] 106 public double[][] OutputFloatVector { get; set; } 107 [Storable] 108 public bool[][] OutputBooleanVector { get; set; } 109 [Storable] 110 public string[][] OutputStringVector { get; set; } 75 111 76 112 public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset
for help on using the changeset viewer.