![]() |
![]() |
![]() |
![]() |
![]() |
Converting UML Diagrams
When UML diagrams are to be converted into SDL diagrams, the UML diagrams need to be placed within a module in the Organizer. The diagrams may be either static structure diagrams or state charts. If multiple diagrams exist within the module, all diagrams will be converted at the same time.
To convert UML diagrams in a module:
- Select a diagram within the module.
- Select the desired conversion alternative from the UML To SDL menu (see below).
The UML2SDL converter will create a new module with the same name as the converted module, but with the prefix "SDL_" added. The new module will contain all the resulting SDL diagrams.
The UML To SDL Menu
The UML To SDL menu in the Organizer contains four alternatives:
- Generate SDL System - generates a system using the default transformation options.
- Generate SDL Package - generates a package using the default transformation options.
- Generate SDL System - allows you to configure the generation of an SDL system using transformation options.
- Generate SDL Package - allows you to configure the generation of an SDL package using transformation options.
Transformation Options
The UML2SDL utility is run as a command-line tool, but is started from the Organizer. If you select an alternative in the UML To SDL menu that allows you to change the transformation options, a dialog is opened in which you may specify the transformation options to UML2SDL:
If you select an alternative in the UML To SDL menu that uses the default transformation options, the dialog is not opened and none of the options described below are used.
The UML2SDL utility accepts a set of flags which allow you to configure the transformation:
- uml2sdl [ -a | -d | -l | -o | -p | -s ] <module>
- -a
Avoid types: All «process» and «block» classes that can have a type property, will automatically have this type set to "false".- -d <directory>
The name of the sub directory that will contain the generated SDL files. A suggestion is given in the dialog, which you can alter. If the directory name does not match an existing sub directory, a new one will be created inside the current working directory.- -l
Local types: Push all type definitions as low as possible in SDL block hierarchies.- -o
Output SDL/PR to stdout, that is, the generated SDL/PR will be output in the Organizer log. No SDL diagram is created in the Organizer.- -p
If used, the UML package will be translated to an SDL package; otherwise it will be translated to an SDL system. This option is preset on the command line if you selected Generate SDL Package from the UML To SDL menu.- -s
Signal default: All operations with no return values are considered to be signals and not remote procedures. If not used, only operations following the «signal» stereotype or operations with a property "{async}" will be mapped to signals.- <module>
The name of the package or system that will be created. A suggestion is given in the dialog, which you can alter.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |