Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/10/20 17:17:37 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • refactored inheritance structure of json items, now the default JsonItem is an abstract class without properties Value and Range -> splitted up into new interfaces
  • updated view models for new json item structure
  • updated SingleLineArrayJsonWriter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/ArrayValueVM.cs

    r17471 r17473  
    1010
    1111  public class DoubleArrayValueVM : ArrayValueVM<double, DoubleArrayJsonItem> {
    12     public override Type JsonItemType => typeof(DoubleArrayJsonItem);
     12    public override Type TargetedJsonItemType => typeof(DoubleArrayJsonItem);
    1313
    1414    protected override double MinTypeValue => double.MinValue;
     
    2929
    3030  public class IntArrayValueVM : ArrayValueVM<int, IntArrayJsonItem> {
    31     public override Type JsonItemType => typeof(IntArrayJsonItem);
     31    public override Type TargetedJsonItemType => typeof(IntArrayJsonItem);
    3232
    3333    protected override int MinTypeValue => int.MinValue;
     
    4747  }
    4848
    49   public abstract class ArrayValueVM<T, JsonItemType> : RangedValueBaseVM<T>, IArrayJsonItemVM
    50     where JsonItemType : IArrayJsonItem {
     49  public abstract class ArrayValueVM<T, JsonItemType> : RangedValueBaseVM<T, JsonItemType>, IArrayJsonItemVM
     50    where T : IComparable
     51    where JsonItemType : class, IArrayJsonItem, IIntervalRestrictedJsonItem<T> {
    5152   
    5253    public ArrayValueVM() { }
Note: See TracChangeset for help on using the changeset viewer.