![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: Open Space Discussion - Stereotype based code generation with Rhapsody in C Topic Summary: Created On: 13-Jun-2006 17:56 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Leader Name: Alexander Steinkogler, Matthias Wufka, Markus Rauber
Attendees: Clemens Maas Jens Laudien Marcel Ritz Markus Gueller Dennis Frölich Richard de Klerk Bernd Mönnicke Martin Stockl Peter Schmittinger Bruno Tischhauser Frank Braun Daniel Brüngger Beery Holstein Hartmut Schorrig Session Notes: Using properties for tayloring the code generation. With the usage of propeties, many tasks can be customized to the needs of an application. An example is the usage of the C_CG::Class::AllocateMemory and C_CG::Class ::FreeMemory property. By overriding this property, it is possible to use own memory allocation routines for memory allocation and deallocation for all instances of a class. Using stereotypes for easy selection of properties Even though the usage of properties for tayloring of code generation is a possible way to go, it still is kind of tedious. The same steps have to be done over and over again, each of them giving the possibility of errors. Stereotypes offer the possibility of changing properties of a Rhapsody Element by a single click. Creating a stereotype uses other Properties as 'Standard Operations' and may influence the code generation that way. Simple Stereotypes allow automatic generation of code realizing the GOF patterns Singleton and Observer with little additional actions being necessary. Using a postprocessor for advanced code generation customization Stereotypes can also be used to invoke a post processor after the Rhapsody code generator to improve the code generation possibilities. The language to be used in the properties themselves is not appropriate for all kinds of code generation tasks. Therefore invoking a post processor may be the way to go for more complicated tasks like building an interface-based simple inheritance for Rhapsody in C. Feel free to discuss further... |
|
![]() |
|
![]() |
|
I want to know if Rhapsody can support the UML 2.0 multiple stereotype assignment. We need this capability to categorize multiple facilities or patterns as they may apply. Rhapsody has a single drop-down list without mutliple select. Hence only one stereotype can easily be defined.
I have been able to create a sort-of-multple stereotype by entering multiple stereotypes separated by commas - I am not sure how Rhapsody handles this. |
|
![]() |
|
![]() |
|
Hi,
It was told at the RUG meeting, that the upcomming version of Rhapsody, would support multiple stereotype assignment. Furthermore, stereotype inheiritance will be possible. Regards, ------------------------- Jesper Gissel Johnson Controls Denmark, Marine Controls |
|
![]() |
|
![]() |
|
Using stereotypes for easy selection of properties
Hi, in order to re-use your stereotypes in other models, without the possibility of errors is to create a profile that contains your stereotypes. This profile can be added to new models as a reference (read-only) and the stereotypes applied to the appropriate model artifacts. Regards, Ian |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.