how to migrate uml to new definitions [message #1052267] |
Mon, 29 April 2013 21:57 |
Alexandre Torres Messages: 139 Registered: July 2009 |
Senior Member |
|
|
Hi!
I have a growing profile full of past definitions, that is 30 times the size it should be. Most of those definitions are not used by any uml, but some are.
I'd like to provide a tool that gets as input an UML with the huge profile applied, and migrate the uml to the new definitions, so that I could use my new profile that has only 200 kb. Of course, I will have to deal with the differences, programming the transition from new to old objects. But what I can't afford is a profile with 10 megabytes, that will have 100 megabytes somewhere in the future.
Any ideas of how could I implement it using EMF + UML2 ?
I did a similar question here http://www.eclipse.org/forums/index.php?t=msg&th=368994&
I was thinking in just give up using the api and go for xml+text processing, because I just can't figure out another way. But using xml+text is a terrible double work!
So, in a nutshell, I need something of the API that can tell me what version of each definition is applyed to each element of my uml, and then another api method that allows me to change the version (that would be great!) OR replace the application with a new one (I can code something that introspect EMF and create exact the same stereotype in the new version).
Thanks in advance.
Alex
|
|
|
|
Re: how to migrate uml to new definitions [message #1052748 is a reply to message #1052267] |
Tue, 30 April 2013 13:26 |
|
Hi, Alex,
If you apply the profile to a model that has an older version applied,
then all of the stereotype applications in the model will be migrated
to their latest definitions. Of course, this works best when the
changes in the profile are compatible from version to version (usually
only adding new elements).
Do you need more complex transformations of the stereotype applications?
HTH,
Christian
On 2013-04-29 21:57:25 +0000, Alexandre Torres said:
> Hi!
>
> I have a growing profile full of past definitions, that is 30 times the
> size it should be. Most of those definitions are not used by any uml,
> but some are.
>
> I'd like to provide a tool that gets as input an UML with the huge
> profile applied, and migrate the uml to the new definitions, so that I
> could use my new profile that has only 200 kb. Of course, I will have
> to deal with the differences, programming the transition from new to
> old objects. But what I can't afford is a profile with 10 megabytes,
> that will have 100 megabytes somewhere in the future.
>
> Any ideas of how could I implement it using EMF + UML2 ?
>
> I did a similar question here
> http://www.eclipse.org/forums/index.php?t=msg&th=368994&
>
> I was thinking in just give up using the api and go for xml+text
> processing, because I just can't figure out another way. But using
> xml+text is a terrible double work!
>
> So, in a nutshell, I need something of the API that can tell me what
> version of each definition is applyed to each element of my uml, and
> then another api method that allows me to change the version (that
> would be great!) OR replace the application with a new one (I can code
> something that introspect EMF and create exact the same stereotype in
> the new version).
>
> Thanks in advance.
> Alex
|
|
|
|
Powered by
FUDForum. Page generated in 0.02754 seconds