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
|
Rev | Line | |
---|
[17834] | 1 | using System;
|
---|
| 2 | using Newtonsoft.Json.Linq;
|
---|
| 3 |
|
---|
| 4 | namespace 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.