The first step is to parse the XML file and to generate an internal model representation—based on an internally defined metamodel—which only contains data required for artifact generation (Figure 3). Depending on the Capella or Simulink/System Composer modeling guidelines, customization is necessary, for example:
- Applying variable naming adjustments
- Adjusting data type and interface settings
- Choosing model architecture types (model reference, subsystem reference, subsystem)
Artifacts are programmatically generated using MATLAB, Simulink, or System Composer application programming interfaces.