|Performance question:Extending the UML metamodel vs Using stereotypes & profiles [message #627716]
||Tue, 23 June 2009 08:04
| Cristian Mising name
Registered: July 2009
I need to extend the UML2 metamodel and I have 2 options:
1) use the "lightweight" approach (i.e. create a profile with stereotypes)
2) use the "mediumweight" approach (i.e. define a new metamodel file and
extend some metaclasses from the UML metamodel + generate them using the
EMF/UML2 codegen mechanism).
Looking through the stereotype mechanism that is implemented in the
Element class (getStereotypeApplication(), ...) I would say that methods
like getValue(Stereotype) and setValue(Stereotype) are a little bit time
consuming (+ the fact that Dynamic EMF Objects are used).
As my algorithm uses the information stored in the extensions quite
extensively, I am wondering if it wouldn't be wiser to use the 2nd
approach instead of the first one?
Any advice would be appreciated.
Powered by FUDForum
. Page generated in 0.07238 seconds