From: Bob Fields (AndroMDA Forum) <forum@an...> - 2009-10-14 18:59:52
Glad to hear of the progress. Probably something we should do at some point is to add every missing metaclass in UML2 to the uml22 metafacade and the common metafacade, just so they are at least available to the templates and the cartridges in case people want to use them.
It still seems like you shouldn't have to add the mapping if you have the andromda metafacade classes named properly.
I've also found that it helps to model the generalization relationship correctly based on the actual UML2 hierarchy, not just everything from ModelElementFacade (UML2 NamedElementImpl), because it minimizes the duplicated implemented methods and gives access to the inherited methods. In this case, it looks like CollaborationImpl inherits from ClassifierImpl (ClassifierFacade). I've run into an issue with this when porting the UML14 implementation to UML2, where the type hierarchy was changed, and andromda does not support different type hierarchies for different repositories, so I had to manually change some of the relationships in the generated code (haven't implemented an automatic fix for that yet).
Out of curiosity, what metaclasses did you have to add, other than Lifeline and Collaboration?
bobfieldsfb <at> hotmail <dot> com
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=28175#28175
Posting to http://forum.andromda.org/ is preferred over posting to the mailing list!