![Eclipse uml editors that can generate code](https://cdn1.cdnme.se/5447227/9-3/screenshot_5_64e62947ddf2b306ca76f796.jpg)
The example below shows a model where classes represent OS tasks and where signals represent cyclic events that trigger an OS task. If we decide to use UML classes to represent tasks, and we further want to use a code generator to generate some code for them, how should the generator know which class represents an OS task and which may represent something else?įortunately, UML offers an extension mechanism via profiles that allows one to specify stereotypes even with additional properties to assign a certain semantics to elements. We often encounter situations where microcontroller software is modeled with UML and it is, for example, simply not possible to properly tell a plain UML element that it represents an OS task that is triggered by some event with a specific cycle period. Yes, there are tools and frameworks to easily define domain-specific languages, but maybe the tooling is fixed to using Enterprise Architect. UML is a great language for describing software systems, but plain UML concepts are rarely sufficient to express domain-specific aspects. This article shows how UML Profiles can be used in Enterprise Architect and how profiled models can further be processed with the EA-Bridge with the exemplary use case of generating source code.
![eclipse uml editors that can generate code eclipse uml editors that can generate code](http://1.bp.blogspot.com/-S96CnJuUuVM/UGGtUm1tHbI/AAAAAAAABRI/lUGDerbTbAg/s1600/13.png)
The UML offers an extension mechanism called Profiles to add certain semantics and additional properties to UML models.
![Eclipse uml editors that can generate code](https://cdn1.cdnme.se/5447227/9-3/screenshot_5_64e62947ddf2b306ca76f796.jpg)