Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/27/20 15:53:26 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • added error output for failed runner initialization
  • reorganised some final view models
  • TargetedJsonItemType (in JsonItemVMBase) now automatically returns the type of the defined JsonItem
  • code cleanup
  • refactored RegressionProblemDataConverter
  • added lots of comments
  • added new view for StringArrayJsonItem
  • added new UI component for concrete restricted items and used it in JsonItemConcreteItemArrayControl and JsonItemValidValuesControl
File:
1 edited

Legend:

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

    r17484 r17519  
    99namespace HeuristicLab.JsonInterface.OptimizerIntegration {
    1010
    11   public class DoubleArrayValueVM : ArrayValueVM<double, DoubleArrayJsonItem> {
    12     public override Type TargetedJsonItemType => typeof(DoubleArrayJsonItem);
     11 
    1312
    14     protected override double MinTypeValue => double.MinValue;
    1513
    16     protected override double MaxTypeValue => double.MaxValue;
    1714
    18     public override UserControl Control =>
    19       new JsonItemDoubleArrayValueControl(this);
    20    
    21     public override double[] Value {
    22       get => Item.Value;
    23       set {
    24         Item.Value = value;
    25         OnPropertyChange(this, nameof(Value));
    26       }
    27     }
    28   }
    29 
    30   public class IntArrayValueVM : ArrayValueVM<int, IntArrayJsonItem> {
    31     public override Type TargetedJsonItemType => typeof(IntArrayJsonItem);
     15  /*
     16  public class StringArrayValueVM : ArrayValueVM<int, IntArrayJsonItem> {
     17    public override Type TargetedJsonItemType => typeof(StringArrayJsonItem);
    3218
    3319    protected override int MinTypeValue => int.MinValue;
     
    3723    public override UserControl Control =>
    3824      new JsonItemBaseControl(this, new JsonItemIntArrayValueControl(this));
    39    
     25
    4026    public override int[] Value {
    4127      get => Item.Value;
     
    4632    }
    4733  }
     34  */
     35
    4836
    4937  public abstract class ArrayValueVM<T, JsonItemType> : RangedValueBaseVM<T, JsonItemType>, IArrayJsonItemVM
Note: See TracChangeset for help on using the changeset viewer.