Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/ResultItemVM.cs @ 17834

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 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using System.Windows.Forms;
7
8namespace 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.