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