Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/16/21 15:27:07 (3 years ago)
Author:
dpiringe
Message:

#3026

  • added StorableTypeAttribute and StorableConstructorAttribute to all JsonItems
  • added a new JsonItem ListJsonItem + Interfaces IListJsonItem
  • renamed SymRegPythonProcessor to RunCollectionSRSolutionPythonFormatter
  • removed Interface IResultCollectionProcessor -> using the interface IRunCollectionModifier now (has aleady implementations)
  • renamed all related variables/fields/properties with a connection to ResultCollectionProcessor
  • added new implementations for IRunCollectionModifier
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/JsonItems/ValueJsonItem.cs

    r17519 r18055  
    11using System;
    22using Newtonsoft.Json.Linq;
     3using HEAL.Attic;
    34
    45namespace HeuristicLab.JsonInterface {
     6  [StorableType("29139288-7ABB-4391-926E-5975CF38141E")]
    57  public abstract class ValueJsonItem : JsonItem, IValueJsonItem {
    68    public object Value { get; set; }
     
    1012    }
    1113
     14    public ValueJsonItem() { }
     15
     16    [StorableConstructor]
     17    protected ValueJsonItem(StorableConstructorFlag _) : base(_) {
     18    }
     19
    1220  }
    1321
     22  [StorableType("86085358-50D6-4486-9265-F6CEA8C8FA19")]
    1423  public abstract class ValueJsonItem<T> : ValueJsonItem, IValueJsonItem<T> {
    1524    public new T Value {
     
    2938
    3039    public override void SetJObject(JObject jObject) {
    31       if(jObject[nameof(IValueJsonItem<T>.Value)] != null)
     40      if (jObject[nameof(IValueJsonItem<T>.Value)] != null)
    3241        Value = jObject[nameof(IValueJsonItem<T>.Value)].ToObject<T>();
    3342    }
     43
     44    public ValueJsonItem() { }
     45
     46    [StorableConstructor]
     47    protected ValueJsonItem(StorableConstructorFlag _) : base(_) { }
    3448  }
    3549}
Note: See TracChangeset for help on using the changeset viewer.