Last change
on this file since 17834 was
17834,
checked in by dpiringe, 3 years ago
|
#3026
- added ResultFormatter to add an extra layer of result transformation logic (converting a result value to a string with a defined logic, e.g. MatlabResultFormatter for ISymbolicRegressionSolution)
- extended the IResultJsonItem with two properties for result formatting
- added a new control to selected a result formatter for a result value
- refactored the Runner for the new result formatting process
|
File size:
660 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Threading.Tasks;
|
---|
6 | using System.Windows.Forms;
|
---|
7 |
|
---|
8 | namespace HeuristicLab.JsonInterface.OptimizerIntegration {
|
---|
9 | public class ResultItemVM : JsonItemVMBase<ResultJsonItem> {
|
---|
10 | public override Type TargetedJsonItemType => typeof(ResultJsonItem);
|
---|
11 | public override UserControl Control => ResultJsonItemControl.Create(this);
|
---|
12 |
|
---|
13 | public string ResultFormatterType {
|
---|
14 | get => Item.ResultFormatterType;
|
---|
15 | set {
|
---|
16 | Item.ResultFormatterType = value;
|
---|
17 | OnPropertyChange(this, nameof(ResultFormatterType));
|
---|
18 | }
|
---|
19 | }
|
---|
20 | }
|
---|
21 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.