Skip to main content


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 08:04
Cristian Spiescu is currently offline Cristian SpiescuFriend
Messages: 100
Registered: July 2009
Senior 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: Tue Apr 23 15:11:06 GMT 2024

Powered by FUDForum. Page generated in 0.03743 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top