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/ValueTypeArrayConverter.cs

    r17828 r17843  
    1212  public class IntArrayConverter : BaseConverter {
    1313    public override int Priority => 1;
    14     public override Type ConvertableType => typeof(IntArray);
    1514
    1615    public override bool CanConvertType(Type t) =>
    17       ConvertableType.IsAssignableFrom(t);
     16      typeof(IntArray).IsAssignableFrom(t);
    1817
    1918    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
     
    4039  public class DoubleArrayConverter : BaseConverter {
    4140    public override int Priority => 1;
    42     public override Type ConvertableType => typeof(DoubleArray);
    4341
    4442    public override bool CanConvertType(Type t) =>
    45       ConvertableType.IsAssignableFrom(t);
     43      typeof(DoubleArray).IsAssignableFrom(t);
    4644
    4745    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
     
    6866  public class PercentArrayConverter : BaseConverter {
    6967    public override int Priority => 2;
    70     public override Type ConvertableType => typeof(PercentArray);
    7168
    7269    public override bool CanConvertType(Type t) =>
    73       ConvertableType.IsAssignableFrom(t);
     70      typeof(PercentArray).IsAssignableFrom(t);
    7471
    7572    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
     
    9693  public class BoolArrayConverter : BaseConverter {
    9794    public override int Priority => 1;
    98     public override Type ConvertableType => typeof(BoolArray);
    9995
    10096    public override bool CanConvertType(Type t) =>
    101       ConvertableType.IsAssignableFrom(t);
     97      typeof(BoolArray).IsAssignableFrom(t);
    10298
    10399    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
Note: See TracChangeset for help on using the changeset viewer.