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 15:28  |
Eclipse User |
|
|
|
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 11:27   |
Eclipse User |
|
|
|
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 09:24   |
Eclipse User |
|
|
|
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 11:27  |
Eclipse User |
|
|
|
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 #619908 is a reply to message #473116] |
Thu, 07 June 2007 23:30  |
Eclipse User |
|
|
|
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 #619913 is a reply to message #473122] |
Fri, 08 June 2007 09:24  |
Eclipse User |
|
|
|
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 #619918 is a reply to message #473125] |
Fri, 08 June 2007 16:38  |
Eclipse User |
|
|
|
Hi James,
Thanks for your quick reply.
I do not understand what you meant by saying "Just open up the
UML.merged.uml using UML2 2.1". Did you mean I can visualize the
UML.merged.uml using some existing tools?
The reason that we would like to stay with UML2 1.1.1 is because we are
developing some research testing techniques/tools, and UML2 1.1.1 is a
very good example for our case study.
I am assuming that the UML2 rose model in the UML2 1.1.1 package is its
corresponding metamodel. It would be perfect if there is a merged version
of this metamodel. In addition, did you every import this Rose model using
Rational Rose or IBM RSA (6.x)? I tried in both tools but got a lot of
errors.
Your help is much appreciated!
-- Sunny
|
|
|
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #619920 is a reply to message #473130] |
Fri, 08 June 2007 21:58  |
Eclipse User |
|
|
|
Hi Sunny,
You can view the structure in the default UML editor ( no diagrams though ).
There are also .emx versions so if you have RSA, you can just open those and
view the diagrams.
By the way, you could also import the .uml version in RSA and then visualize
it.
I'm not sure about the errors you mentioned below.
- James.
"Sunny" <sunfire001@gmail.com> wrote in message
news:7122c7061643c3efccad05301313b39b$1@www.eclipse.org...
> Hi James,
>
> Thanks for your quick reply.
>
> I do not understand what you meant by saying "Just open up the
> UML.merged.uml using UML2 2.1". Did you mean I can visualize the
> UML.merged.uml using some existing tools?
>
> The reason that we would like to stay with UML2 1.1.1 is because we are
> developing some research testing techniques/tools, and UML2 1.1.1 is a
> very good example for our case study.
> I am assuming that the UML2 rose model in the UML2 1.1.1 package is its
> corresponding metamodel. It would be perfect if there is a merged version
> of this metamodel. In addition, did you every import this Rose model using
> Rational Rose or IBM RSA (6.x)? I tried in both tools but got a lot of
> errors.
>
> Your help is much appreciated!
>
> -- Sunny
>
>
|
|
| | |
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #621702 is a reply to message #473213] |
Tue, 19 June 2007 20:11  |
Eclipse User |
|
|
|
Hi James,
Sorry I am kind of confused. But I did not find an .emx file in any uml2
sdk I have. For instance, the directory
uml2-2.1RC2\eclipse\plugins\org.eclipse.uml2.source_2.1.0.v2 00706051155\src\org.eclipse.uml2.uml_2.1.0.v200706051155\mod el
does not contain .emx files. Is this the right directory? Could you please
tell me more about it? Thank you very much.
-- Sunny
|
|
|
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #622573 is a reply to message #473215] |
Tue, 26 June 2007 10:07  |
Eclipse User |
|
|
|
Hi Sunny
They are located in the org.eclipse.uml2.uml\model directory but if you
cannot find them in the downloadable .jars you could try getting them from
..cvs.
Use these settings:
connection type: pserver
user: anonymous
host: dev.eclipse.org
repository path: /cvsroot/modeling
Cheers,
- James.
"Sunny" <sunfire001@gmail.com> wrote in message
news:21d51ae7dedbe22fe55d191edcf0cb68$1@www.eclipse.org...
> Hi James,
>
> Sorry I am kind of confused. But I did not find an .emx file in any uml2
> sdk I have. For instance, the directory
>
uml2-2.1RC2\eclipse\plugins\org.eclipse.uml2.source_2.1.0.v2 00706051155\src\
org.eclipse.uml2.uml_2.1.0.v200706051155\model
> does not contain .emx files. Is this the right directory? Could you please
> tell me more about it? Thank you very much.
>
>
> -- Sunny
>
|
|
| |
Goto Forum:
Current Time: Tue Jul 08 18:29:19 EDT 2025
Powered by FUDForum. Page generated in 0.06248 seconds
|