Ignore:
Timestamp:
02/23/21 16:36:44 (8 weeks ago)
Author:
dpiringe
Message:

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

Legend:

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

    r17828 r17843  
    11using System;
    2 using System.Collections.Generic;
    3 using System.Linq;
    4 using System.Reflection;
    5 using System.Text;
    6 using System.Threading.Tasks;
    7 using HeuristicLab.Common;
    82using HeuristicLab.Core;
    93using HeuristicLab.Data;
     
    137  public class IntRangeConverter : BaseConverter {
    148    public override int Priority => 1;
    15     public override Type ConvertableType => typeof(IntRange);
    169
    1710    public override bool CanConvertType(Type t) =>
    18       ConvertableType.IsAssignableFrom(t);
     11      typeof(IntRange).IsAssignableFrom(t);
    1912
    2013    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
     
    4033  public class DoubleRangeConverter : BaseConverter {
    4134    public override int Priority => 1;
    42     public override Type ConvertableType => typeof(DoubleRange);
    4335
    4436    public override bool CanConvertType(Type t) =>
    45       ConvertableType.IsAssignableFrom(t);
     37      typeof(DoubleRange).IsAssignableFrom(t);
    4638
    4739    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
Note: See TracChangeset for help on using the changeset viewer.