Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonItems/ResultJsonItem.cs @ 17843

Last change on this file since 17843 was 17843, checked in by dpiringe, 3 years ago

#3026

  • removed property ConvertableType from all converters
  • removed the option to fixate or loosen the path of JsonItems (obsolete)
  • added a abstract formatter SymbolicRegressionSolutionFormatterBase as base formatter for ISymbolicRegressionSolution
  • unified the construction of exporter controls
  • code cleanup
File size: 547 bytes
RevLine 
[17834]1using System;
2using Newtonsoft.Json.Linq;
3
4namespace HeuristicLab.JsonInterface {
[17471]5  public class ResultJsonItem : JsonItem, IResultJsonItem {
[17834]6    public string ResultFormatterType { get; set; }
7
8    public Type ValueType { get; set; }
9
[17481]10    protected override ValidationResult Validate() => ValidationResult.Successful();
[17828]11
[17834]12    public override void SetJObject(JObject jObject) {
13      base.SetJObject(jObject);
14      ResultFormatterType = (jObject[nameof(IResultJsonItem.ResultFormatterType)]?.ToObject<string>());
15    }
16
[17406]17  }
18}
Note: See TracBrowser for help on using the repository browser.