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

    r17519 r17843  
    55namespace HeuristicLab.JsonInterface {
    66  public static class JsonItemConverterFactory {
    7     private static IDictionary<Type, IJsonItemConverter> ConverterCache { get; set; }
     7    private static IEnumerable<IJsonItemConverter> ConverterCache { get; set; }
    88
    99    public static JsonItemConverter Create() {
     
    1414
    1515    private static void InitCache() {
    16       ConverterCache = new Dictionary<Type, IJsonItemConverter>();
     16      IList<IJsonItemConverter> cache = new List<IJsonItemConverter>();
    1717      foreach (var converter in ApplicationManager.Manager.GetInstances<IJsonItemConverter>()) {
    18         ConverterCache.Add(converter.ConvertableType, converter);
     18        cache.Add(converter);
    1919      }
     20      ConverterCache = cache;
    2021    }
    2122  }
Note: See TracChangeset for help on using the changeset viewer.