Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/12/21 15:24:18 (3 years ago)
Author:
dpiringe
Message:

#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:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonTemplateInstantiator.cs

    r17828 r17834  
    8181      IList<IResultJsonItem> res = new List<IResultJsonItem>();
    8282      foreach(JObject obj in Template[Constants.Results]) {
    83         string name = obj.Property("Name").Value.ToString();
    84         res.Add(new ResultJsonItem() { Name = name });
     83        //string name = obj.Property("Name").Value.ToString();
     84        var resultItem = new ResultJsonItem();
     85        resultItem.SetJObject(obj);
     86        res.Add(resultItem);
     87        //res.Add(new ResultJsonItem() { Name = name });
    8588      }
    8689      return res;
Note: See TracChangeset for help on using the changeset viewer.