-
Notifications
You must be signed in to change notification settings - Fork 176
Changes targeting MSL v4.0.0 requiring conversion
Thomas Beutlich edited this page Mar 25, 2019
·
13 revisions
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.
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.
- Rename the actual class/component/modifier name.
- In the MSL, adapt all references of that class/component/modifier name.
- Add you conversion to the conversion script ConvertModelica_from_3.2.3_to_4.0.0.mos.
- Add a unit test model to ModelicaTestConversion4.mo relying on the old class/component/modifier name of MSL v3.x.y.