Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Sunfire is currently offline SunfireFriend
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 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
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 #473122 is a reply to message #473116] Fri, 08 June 2007 03:30 Go to previous messageGo to next message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
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 #473125 is a reply to message #473122] Fri, 08 June 2007 13:24 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
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 #473130 is a reply to message #473125] Fri, 08 June 2007 20:38 Go to previous messageGo to next message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
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 #473132 is a reply to message #473130] Sat, 09 June 2007 01:58 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 #473210 is a reply to message #473132] Fri, 15 June 2007 20:42 Go to previous messageGo to next message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hi James,

Sorry for my late response. I was out of town...

I have not yet got a chance to try the default UML editor, but I will do
that later. In addition, where are the .emx versions of those models? I
think only RSA 7 may import the models in .uml format.

Thank you and have a nice weekend,

-- Sunny
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #473213 is a reply to message #473210] Mon, 18 June 2007 17:35 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
The .emx are in the org.eclipse.uml2.uml/model directory.

Regards,

- James.

"Sunny" <sunfire001@gmail.com> wrote in message
news:3b76296341d0dc3a173f39b7760a0379$1@www.eclipse.org...
> Hi James,
>
> Sorry for my late response. I was out of town...
>
> I have not yet got a chance to try the default UML editor, but I will do
> that later. In addition, where are the .emx versions of those models? I
> think only RSA 7 may import the models in .uml format.
>
> Thank you and have a nice weekend,
>
> -- Sunny
>
>
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #473215 is a reply to message #473213] Wed, 20 June 2007 00:11 Go to previous messageGo to next message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
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 #473308 is a reply to message #473215] Tue, 26 June 2007 14:07 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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
>
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #473436 is a reply to message #473308] Wed, 27 June 2007 17:28 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hello James,

Thank you very much... I will try that.

Nice day,

-- 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 Go to previous message
james bruck is currently offline james bruckFriend
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 #619908 is a reply to message #473116] Fri, 08 June 2007 03:30 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
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 13:24 Go to previous message
james bruck is currently offline james bruckFriend
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 #619918 is a reply to message #473125] Fri, 08 June 2007 20:38 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
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] Sat, 09 June 2007 01:58 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 #621691 is a reply to message #473132] Fri, 15 June 2007 20:42 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hi James,

Sorry for my late response. I was out of town...

I have not yet got a chance to try the default UML editor, but I will do
that later. In addition, where are the .emx versions of those models? I
think only RSA 7 may import the models in .uml format.

Thank you and have a nice weekend,

-- Sunny
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #621699 is a reply to message #473210] Mon, 18 June 2007 17:35 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
The .emx are in the org.eclipse.uml2.uml/model directory.

Regards,

- James.

"Sunny" <sunfire001@gmail.com> wrote in message
news:3b76296341d0dc3a173f39b7760a0379$1@www.eclipse.org...
> Hi James,
>
> Sorry for my late response. I was out of town...
>
> I have not yet got a chance to try the default UML editor, but I will do
> that later. In addition, where are the .emx versions of those models? I
> think only RSA 7 may import the models in .uml format.
>
> Thank you and have a nice weekend,
>
> -- Sunny
>
>
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #621702 is a reply to message #473213] Wed, 20 June 2007 00:11 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
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 14:07 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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
>
Re: Which packages in UML2 superstructure does Eclipse UML2 implement? [message #622595 is a reply to message #473308] Wed, 27 June 2007 17:28 Go to previous message
Sunfire is currently offline SunfireFriend
Messages: 71
Registered: July 2009
Member
Hello James,

Thank you very much... I will try that.

Nice day,

-- Sunny
Previous Topic:org.eclipse.emf.ecore.xmi.IllegalValueException
Next Topic:how to load uml model with stereotype info back ?
Goto Forum:
  


Current Time: Sun Nov 19 16:23:50 GMT 2017

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

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