Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Performance question:Extending the UML metamodel vs Using stereotypes & profiles
Performance question:Extending the UML metamodel vs Using stereotypes & profiles [message #627716] Tue, 23 June 2009 04:04
Cristian Mising name is currently offline Cristian Mising name
Messages: 74
Registered: July 2009
Member
Hello,

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.

Thanks.
Cristi.
Previous Topic:EMF and UML versions compatibility in standalone application
Next Topic:Utility functions in the metaclasses or in external utility plugin?
Goto Forum:
  


Current Time: Sun Aug 31 00:28:25 EDT 2014

Powered by FUDForum. Page generated in 0.02134 seconds