Skip to content

Changes targeting MSL v4.0.0 requiring conversion

Thomas Beutlich edited this page Mar 25, 2019 · 13 revisions

Background

MSL v4.0.0 enables renaming, moving (and removing) of existing classes and components. In order to not break backwards-compatibility of existing user libraries based on MSL v3.x.y, it is required to provide conversion scripts and unit tests.

How to do it

First, make yourself familiar with the conversion scripts. The description, that comes with the MSL explains the four main conversion functions convertClass, convertClass, convertModifiers and convertElement.

Renaming

  1. Rename the actual class/component/modifier name.
  2. In the MSL, adapt all references of that class/component/modifier name.
  3. Add you conversion to the conversion script ConvertModelica_from_3.2.3_to_4.0.0.mos.
  4. Add a unit test model to ModelicaTestConversion4.mo relying on the old class/component/modifier name of MSL v3.x.y.

Clone this wiki locally