Flattening of Traits
[Previous]  [Next] 
|
User Manual [Previous]  [Next] Flattening of TraitsA system modeled with traits can be transformed to a compatible model without traits. This process is called flattening. Traits are flattened to clients when they are used by clients, so it would also be beneficial to be able to instantly switch between a view with traits and a flattened view. This could help modelers to understand how traits are represented in any object-oriented target languages, as well as the implications of the traits to the generated system. Furthermore, flattened model is useful when it is required to understand what provided methods are available in each final client. In order to achieve this in UmpleOnline, first the menu OPTIONS must be selected. Then, sub menus Graphviz Class and Traits must be selected for DIAGRAM TYPE and SHOW VIEW respectively. In order to switch to the flattened model, modelers simply need to deselect Traits in SHOW VIEW. These two views can also be generated through the Umple command line interface and the Umple Eclipse Plugin. In order to see the flattened model textually, first the menu TOOLS must be selected. Then, from the drop down named GENERATE select Internal Umple Representation. Finally, click on Generate code to see the result or to download it. |