- Timestamp:
- 08/31/21 15:43:06 (3 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ParameterizedItemConverter.cs
r18043 r18045 11 11 12 12 public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) { 13 IParameterizedItempItem = item as IParameterizedItem;13 var pItem = item as IParameterizedItem; 14 14 15 15 if(data.Children != null) { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/RegressionProblemDataConverter.cs
r18044 r18045 43 43 StringArrayJsonItem allowedInputVariables = null; 44 44 45 46 45 // search first for the items (cache them, because the 47 46 // order is important for injection) 48 47 foreach (var child in data.Children) { 49 50 48 if (child.Path.EndsWith(Dataset)) 51 49 dataset = child as DoubleMatrixJsonItem; … … 58 56 else if (child.Path.EndsWith(AllowedInputVariables)) 59 57 allowedInputVariables = child as StringArrayJsonItem; 60 61 58 } 62 59 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueLookupParameterConverter.cs
r18043 r18045 20 20 public override IJsonItem Extract(IItem value, IJsonItemConverter root) { 21 21 IValueLookupParameter param = value as IValueLookupParameter; 22 23 22 IValueLookupJsonItem item = new ValueLookupJsonItem(); 24 23 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/ValueParameterConverter.cs
r18043 r18045 13 13 IParameter parameter = value as IParameter; 14 14 15 if (!(data is EmptyJsonItem)) { 16 if (parameter.ActualValue == null) 17 parameter.ActualValue = Instantiate(parameter.DataType); 18 root.Inject(parameter.ActualValue, data, root); 19 } 15 if (parameter.ActualValue == null) 16 parameter.ActualValue = Instantiate(parameter.DataType); 17 root.Inject(parameter.ActualValue, data, root); 20 18 } 21 19
Note: See TracChangeset
for help on using the changeset viewer.