Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/26/19 17:43:44 (5 years ago)
Author:
dpiringe
Message:

#3026

  • deleted Util.cs
  • BaseTransformer merges now the component with its reference (if a reference exists) -> easier handling for transformers with parameterizedItems
  • MultiCheckedOperatorTransformer now sets the type name as default value
  • added a type list at the end of the template file -> is needed to instantiate objects
  • changed JCGenerator and JCInstantiator to test a format where FreeParameters and StaticParameters are saved as single Parameter array
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.Manufacture/ParameterTransformer/ParameterizedItemTransformer.cs

    r17271 r17275  
    1313      IParameterizedItem pItem = item.Cast<IParameterizedItem>();
    1414
    15       foreach (var sp in data.Parameters)
    16         if (pItem.Parameters.TryGetValue(sp.Name, out IParameter param))
    17           Transformer.Inject(param, sp);
     15      if(data.Parameters != null) {
     16        foreach (var sp in data.Parameters)
     17          if (pItem.Parameters.TryGetValue(sp.Name, out IParameter param))
     18            Transformer.Inject(param, sp);
     19      }
    1820    }
    1921
     
    2527      obj.Type = value.GetType().AssemblyQualifiedName;
    2628      obj.ParameterizedItems = list;
     29      obj.Parameters = new List<Component>();
    2730      list.Add(obj);
    2831
     
    3033        if (!param.Hidden) {
    3134          Component data = Transformer.Extract(param);
    32           obj[data.Name] = data;
     35          obj.Parameters.Add(data);
    3336          if(data.ParameterizedItems != null)
    3437            list.AddRange(data.ParameterizedItems);
Note: See TracChangeset for help on using the changeset viewer.