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

    r17828 r17843  
    1111  public class IntMatrixConverter : ValueTypeMatrixConverter<IntMatrix, int> {
    1212    public override int Priority => 1;
    13     public override Type ConvertableType => typeof(IntMatrix);
    1413
    1514    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
     
    3130  public class DoubleMatrixConverter : ValueTypeMatrixConverter<DoubleMatrix, double> {
    3231    public override int Priority => 1;
    33     public override Type ConvertableType => typeof(DoubleMatrix);
    3432
    3533    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
     
    5351  public class PercentMatrixConverter : ValueTypeMatrixConverter<PercentMatrix, double> {
    5452    public override int Priority => 2;
    55     public override Type ConvertableType => typeof(PercentMatrix);
    5653
    5754    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
     
    7370  public class BoolMatrixConverter : ValueTypeMatrixConverter<BoolMatrix, bool> {
    7471    public override int Priority => 1;
    75     public override Type ConvertableType => typeof(BoolMatrix);
    7672
    7773    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
     
    9490  {
    9591    public override bool CanConvertType(Type t) =>
    96       ConvertableType.IsAssignableFrom(t);
     92      typeof(MatrixType).IsAssignableFrom(t);
    9793
    9894    #region Helper
Note: See TracChangeset for help on using the changeset viewer.