Changeset 14875 for branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Views
- Timestamp:
- 04/18/17 01:15:25 (8 years ago)
- Location:
- branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Views/DataEditorView.cs
r14834 r14875 8 8 9 9 [View("Push Expression Selection Editor")] 10 [Content(typeof( Data), true)]10 [Content(typeof(ProblemData), true)] 11 11 public partial class DataEditorView : NamedItemView { 12 12 private const string ValueSeparator = ", "; … … 58 58 59 59 switch (type) { 60 case ExampleArgumentType.Bool :60 case ExampleArgumentType.Boolean: 61 61 example.InputBoolean = new[] { ExampleArgumentConverter.ConvertBoolean(arg) }; 62 62 example.InputArgs[i] = arg; 63 63 break; 64 64 case ExampleArgumentType.Integer: 65 example.InputInt = new[] { ExampleArgumentConverter.ConvertInteger(arg) };65 example.InputInteger = new[] { ExampleArgumentConverter.ConvertInteger(arg) }; 66 66 example.InputArgs[i] = arg; 67 67 break; 68 case ExampleArgumentType.Integer Collection:69 example.InputInt = ExampleArgumentConverter.ConvertIntegers(arg);70 example.InputArgs[i] = string.Join(ValueSeparator, example.InputInt );68 case ExampleArgumentType.IntegerVector: 69 example.InputInteger = ExampleArgumentConverter.ConvertIntegers(arg); 70 example.InputArgs[i] = string.Join(ValueSeparator, example.InputInteger); 71 71 break; 72 72 case ExampleArgumentType.Float: … … 74 74 example.InputArgs[i] = arg; 75 75 break; 76 case ExampleArgumentType.Float Collection:76 case ExampleArgumentType.FloatVector: 77 77 example.InputFloat = ExampleArgumentConverter.ConvertDoubles(arg); 78 78 example.InputArgs[i] = string.Join(ValueSeparator, example.InputFloat); … … 87 87 88 88 switch (type) { 89 case ExampleArgumentType.Bool :89 case ExampleArgumentType.Boolean: 90 90 example.OutputBoolean = new[] { ExampleArgumentConverter.ConvertBoolean(arg) }; 91 91 example.OutputArgs[i] = arg; 92 92 break; 93 93 case ExampleArgumentType.Integer: 94 example.OutputInt = new[] { ExampleArgumentConverter.ConvertInteger(arg) };94 example.OutputInteger = new[] { ExampleArgumentConverter.ConvertInteger(arg) }; 95 95 example.OutputArgs[i] = arg; 96 96 break; 97 case ExampleArgumentType.Integer Collection:98 example.OutputInt = ExampleArgumentConverter.ConvertIntegers(arg);99 example.OutputArgs[i] = string.Join(ValueSeparator, example.OutputInt );97 case ExampleArgumentType.IntegerVector: 98 example.OutputInteger = ExampleArgumentConverter.ConvertIntegers(arg); 99 example.OutputArgs[i] = string.Join(ValueSeparator, example.OutputInteger); 100 100 break; 101 101 case ExampleArgumentType.Float: … … 103 103 example.OutputArgs[i] = arg; 104 104 break; 105 case ExampleArgumentType.Float Collection:105 case ExampleArgumentType.FloatVector: 106 106 example.OutputFloat = ExampleArgumentConverter.ConvertDoubles(arg); 107 107 example.OutputArgs[i] = string.Join(ValueSeparator, example.OutputFloat); … … 113 113 } 114 114 115 public new Data Content115 public new ProblemData Content 116 116 { 117 get { return ( Data)base.Content; }117 get { return (ProblemData)base.Content; } 118 118 set 119 119 { -
branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problem.ProgramSynthesis.BenchmarkSuite/Views/ViewHelper.cs
r14834 r14875 4 4 switch (type) { 5 5 case ExampleArgumentType.Integer: 6 case ExampleArgumentType.Integer Collection: return string.Join(valueSeparator, example.InputInt);6 case ExampleArgumentType.IntegerVector: return string.Join(valueSeparator, example.InputInteger); 7 7 8 8 case ExampleArgumentType.Float: 9 case ExampleArgumentType.Float Collection: return string.Join(valueSeparator, example.InputFloat);9 case ExampleArgumentType.FloatVector: return string.Join(valueSeparator, example.InputFloat); 10 10 11 case ExampleArgumentType.Bool : return string.Join(valueSeparator, example.InputBoolean);11 case ExampleArgumentType.Boolean: return string.Join(valueSeparator, example.InputBoolean); 12 12 case ExampleArgumentType.Char: return string.Join(valueSeparator, example.InputChar); 13 13 14 14 case ExampleArgumentType.String: 15 case ExampleArgumentType.String Collection: return string.Join(valueSeparator, example.InputString);15 case ExampleArgumentType.StringVector: return string.Join(valueSeparator, example.InputString); 16 16 default: return string.Empty; 17 17 } … … 21 21 switch (type) { 22 22 case ExampleArgumentType.Integer: 23 case ExampleArgumentType.Integer Collection: return string.Join(valueSeparator, example.OutputInt);23 case ExampleArgumentType.IntegerVector: return string.Join(valueSeparator, example.OutputInteger); 24 24 25 25 case ExampleArgumentType.Float: 26 case ExampleArgumentType.Float Collection: return string.Join(valueSeparator, example.OutputFloat);26 case ExampleArgumentType.FloatVector: return string.Join(valueSeparator, example.OutputFloat); 27 27 28 case ExampleArgumentType.Bool : return string.Join(valueSeparator, example.OutputBoolean);28 case ExampleArgumentType.Boolean: return string.Join(valueSeparator, example.OutputBoolean); 29 29 case ExampleArgumentType.Char: return string.Join(valueSeparator, example.OutputChar); 30 30 31 31 case ExampleArgumentType.String: 32 case ExampleArgumentType.String Collection: return string.Join(valueSeparator, example.OutputString);32 case ExampleArgumentType.StringVector: return string.Join(valueSeparator, example.OutputString); 33 33 default: return string.Empty; 34 34 } … … 47 47 case ExampleArgumentType.Integer: return IntegerColumnHeader; 48 48 case ExampleArgumentType.Float: return DoubleColumnHeader; 49 case ExampleArgumentType.Bool : return BooleanColumnHeader;49 case ExampleArgumentType.Boolean: return BooleanColumnHeader; 50 50 case ExampleArgumentType.Char: return CharColumnHeader; 51 51 case ExampleArgumentType.String: return StringColumnHeader; 52 case ExampleArgumentType.Integer Collection: return IntegersColumnHeader;53 case ExampleArgumentType.Float Collection: return DoublesColumnHeader;54 case ExampleArgumentType.String Collection: return StringsColumnHeader;52 case ExampleArgumentType.IntegerVector: return IntegersColumnHeader; 53 case ExampleArgumentType.FloatVector: return DoublesColumnHeader; 54 case ExampleArgumentType.StringVector: return StringsColumnHeader; 55 55 default: return string.Empty; 56 56 }
Note: See TracChangeset
for help on using the changeset viewer.