umlmdaplatform-specific

A good aproach to represent A LOT of functions on UML


I am working on a project which requires to have a strong architecture; I'm currently using MDA (Model-Driven Architecture) and i am facing a trouble in the Platform-Specific Model (M1).

I have a class which may contain +30 functions and I just don't wanna put all those functions in the UML unless it is 100% mandatory. So i have a couple of doubts:

I know this may sound a little silly, but i'm asking to someone with good understanding of UML. Thanks!


Solution

  • There are two levels in your question: the UML aspect and the MDA aspect.

    In UML you have aonemodel, and many diagrams can show some selective, partial aspects of the model. It is for example very frequent to have:

    So no, you're not obliged in UML to show all the 30 functions (which would make your diagram unreadable).

    In MDA, if you want to automate the transformations from a platform independent model (PIM) to a platform specific model (PSM) and the into something executable (code?), you'll need to have a very complete model for this to work with forward engineering. Otherwhise you'd be forced to manually review the code generated to enhance it. In this case you'd need the 30 functions described somewhere. But not necessarily in the UML diagram (or at least not in all UMLs). Or at least not from scratch, if your toolset allows reverse engineer code and to make a model based on code to complete the infos that you have in your UML.