Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/ResultFormatters/StringResultFormatter.cs @ 18030

Last change on this file since 18030 was 17834, checked in by dpiringe, 4 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: 395 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace HeuristicLab.JsonInterface {
8  public class StringResultFormatter : ResultFormatter {
9    public override int Priority => 1;
10
11    public override bool CanFormatType(Type t) => true;
12
13    public override string Format(object o) => o.ToString();
14  }
15}
Note: See TracBrowser for help on using the repository browser.