Home » Modeling » UML2 » Which packages in UML2 superstructure does Eclipse UML2 implement?
Which packages in UML2 superstructure does Eclipse UML2 implement? [message #473105] |
Wed, 06 June 2007 19:28 |
Sunfire Messages: 71 Registered: July 2009 |
Member |
|
|
Hi,
Earlier I focused on only a subset of the UML2 superstructure and assumed
that the class names are unique. However, when I tried to match an
instance of the UML2.0 implementation with a class in the metamodel by
class name, I found there were many matches. For example, if I create an
object of type org.eclipse.uml2.Class, then there are at least two classes
in the metamodel matching the object's type name: one is the Class in the
Kernel namespace and the other is the Class in the Communications package.
So my question is:
What packages in UML2.0 (05-07-04) does the UML2_1.1.1 implement? That is,
given a specific class in org.eclipse.uml2, how do I know which meta class
in does this class correspond to? Although some of them are pretty
obvious, many of them are not due to unfamiliarity.
Thank you for any help,
-- Sunny
|
|
|
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #473116 is a reply to message #473105] |
Thu, 07 June 2007 15:27 |
james bruck Messages: 1724 Registered: July 2009 |
Senior Member |
|
|
Hi Sunny,
Some comments below.
"Sunny" <sunfire001@gmail.com> wrote in message
news:b40a4d484bc63ee613d3d1ef0ae5b9d6$1@www.eclipse.org...
> Hi,
>
> Earlier I focused on only a subset of the UML2 superstructure and assumed
> that the class names are unique. However, when I tried to match an
> instance of the UML2.0 implementation with a class in the metamodel by
> class name, I found there were many matches. For example, if I create an
> object of type org.eclipse.uml2.Class, then there are at least two classes
> in the metamodel matching the object's type name: one is the Class in the
> Kernel namespace and the other is the Class in the Communications package.
> So my question is:
>
> What packages in UML2.0 (05-07-04) does the UML2_1.1.1 implement?
All of them. All the metatypes in the spec are defined in the API. The
resulting API is the merged combination of all the various language units /
packages.
>That is,
> given a specific class in org.eclipse.uml2, how do I know which meta class
> in does this class correspond to?
In the spec, read the section on "Compliance Levels" it explains the
pricipal mechanism for supporting compliance levels, namely package merge.
The resulting API is generated from merging the various language
units/packages.
Have a look at UML.merged.uml. This is the version of the metamodel that
merges all the constructs from the various packages. The API is ultimately
generated from this.
>Although some of them are pretty
> obvious, many of them are not due to unfamiliarity.
Unfortunately I think you will have to have a certain familiarity with the
structure of the various packages to figure out where the metatypes are
coming from. There are diagrams in the spec near the top explaining the
various packages.
There is also a table in the spec explaining identifying the packages
(section 2.4)
>
> Thank you for any help,
>
> -- Sunny
>
|
|
| |
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #473125 is a reply to message #473122] |
Fri, 08 June 2007 13:24 |
james bruck Messages: 1724 Registered: July 2009 |
Senior Member |
|
|
Hi Sunny,
Just open up the UML.merged.uml using UML2 2.1.
There is no backward migration support currently ( just forward migration ).
Of course, you could write a program to perform
the backward migration if you really wanted that support.
Also, keep in mind that the metamodel for UML2 2.1 and UML2 1.x are
significantly different. You will find new metatypes in 2.1 that did not
exist in 1.x and ones that have been removed etc.
If possible, I would recommend migrating to the newer 2.1 version. If you
are using RSA, try moving to 7.x. There is even an API migration feature
that will refactor code written against the older UML api.
Regards,
- James.
"Sunny" <sunfire001@gmail.com> wrote in message
news:65538c3bdd675229f49a94798aa9e96f$1@www.eclipse.org...
> Hi James,
>
> Thank you so much for your help!
>
> I read the compliance level and PackageMerge sections in the UML2 spec and
> have better understanding of it. I found a UML.merged.uml in every UML2
> 2.0.x version and think this model file is very convenient for use. But in
> the UML2 1.1.1 version, only a non-merged Rose model is found in its
> directory. Is a merged model file available for this version?
>
> In addition, how may I visualize the UML.merged.uml? Can I write a program
> to convert it to .uml2 and import it using IBM RSA, or there are other
> better ways?
>
> Thanks again,
>
> -- Sunny
>
|
|
| | | | | | | |
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #619786 is a reply to message #473105] |
Thu, 07 June 2007 15:27 |
james bruck Messages: 1724 Registered: July 2009 |
Senior Member |
|
|
Hi Sunny,
Some comments below.
"Sunny" <sunfire001@gmail.com> wrote in message
news:b40a4d484bc63ee613d3d1ef0ae5b9d6$1@www.eclipse.org...
> Hi,
>
> Earlier I focused on only a subset of the UML2 superstructure and assumed
> that the class names are unique. However, when I tried to match an
> instance of the UML2.0 implementation with a class in the metamodel by
> class name, I found there were many matches. For example, if I create an
> object of type org.eclipse.uml2.Class, then there are at least two classes
> in the metamodel matching the object's type name: one is the Class in the
> Kernel namespace and the other is the Class in the Communications package.
> So my question is:
>
> What packages in UML2.0 (05-07-04) does the UML2_1.1.1 implement?
All of them. All the metatypes in the spec are defined in the API. The
resulting API is the merged combination of all the various language units /
packages.
>That is,
> given a specific class in org.eclipse.uml2, how do I know which meta class
> in does this class correspond to?
In the spec, read the section on "Compliance Levels" it explains the
pricipal mechanism for supporting compliance levels, namely package merge.
The resulting API is generated from merging the various language
units/packages.
Have a look at UML.merged.uml. This is the version of the metamodel that
merges all the constructs from the various packages. The API is ultimately
generated from this.
>Although some of them are pretty
> obvious, many of them are not due to unfamiliarity.
Unfortunately I think you will have to have a certain familiarity with the
structure of the various packages to figure out where the metatypes are
coming from. There are diagrams in the spec near the top explaining the
various packages.
There is also a table in the spec explaining identifying the packages
(section 2.4)
>
> Thank you for any help,
>
> -- Sunny
>
|
|
| |
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #619913 is a reply to message #473122] |
Fri, 08 June 2007 13:24 |
james bruck Messages: 1724 Registered: July 2009 |
Senior Member |
|
|
Hi Sunny,
Just open up the UML.merged.uml using UML2 2.1.
There is no backward migration support currently ( just forward migration ).
Of course, you could write a program to perform
the backward migration if you really wanted that support.
Also, keep in mind that the metamodel for UML2 2.1 and UML2 1.x are
significantly different. You will find new metatypes in 2.1 that did not
exist in 1.x and ones that have been removed etc.
If possible, I would recommend migrating to the newer 2.1 version. If you
are using RSA, try moving to 7.x. There is even an API migration feature
that will refactor code written against the older UML api.
Regards,
- James.
"Sunny" <sunfire001@gmail.com> wrote in message
news:65538c3bdd675229f49a94798aa9e96f$1@www.eclipse.org...
> Hi James,
>
> Thank you so much for your help!
>
> I read the compliance level and PackageMerge sections in the UML2 spec and
> have better understanding of it. I found a UML.merged.uml in every UML2
> 2.0.x version and think this model file is very convenient for use. But in
> the UML2 1.1.1 version, only a non-merged Rose model is found in its
> directory. Is a merged model file available for this version?
>
> In addition, how may I visualize the UML.merged.uml? Can I write a program
> to convert it to .uml2 and import it using IBM RSA, or there are other
> better ways?
>
> Thanks again,
>
> -- Sunny
>
|
|
| | | | | | | |
Goto Forum:
Current Time: Fri Apr 19 11:34:34 GMT 2024
Powered by FUDForum. Page generated in 0.02593 seconds
|