Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » How to represent dependency model with UML2
How to represent dependency model with UML2 [message #477171] Wed, 02 April 2008 11:46 Go to next message
Lasith is currently offline LasithFriend
Messages: 29
Registered: July 2009
Junior Member
Hi All,

I am having a problem with representing a dependency model with UML2 API.
E.g.
We have a model called base model(think this is a instance of
org.eclipse.uml2.uml.Model) with one enumeration called 'enumBase' also we
have a extension model.
So I want to apply the type 'enumBase' to the attribute on extension model.

So as basic uml theory now base model became as a dependency model for
extension model. How can I represent this relationship with UML2 API?

After doing these things when I am opening the extension model with the
UML2 API how can I get the dependency models (it should be base model)
using the UML2 API?

Regards,
_ Lasith.
Re: How to represent dependency model with UML2 [message #477183 is a reply to message #477171] Thu, 03 April 2008 15:13 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Lasith,

You can model the relationship you are interested in with a PackageImport or
a Dependency relationship.
Load the dependent model in the same resource set as the original model and
you should be able to access types from the dependent model.

Cheers,
- James.


"Lasith" <lasith100@yahoo.com> wrote in message
news:a48f985a013fcef848adf990529f41a7$1@www.eclipse.org...
> Hi All,
>
> I am having a problem with representing a dependency model with UML2 API.
> E.g.
> We have a model called base model(think this is a instance of
> org.eclipse.uml2.uml.Model) with one enumeration called 'enumBase' also we
> have a extension model.
> So I want to apply the type 'enumBase' to the attribute on extension
> model.
>
> So as basic uml theory now base model became as a dependency model for
> extension model. How can I represent this relationship with UML2 API?
>
> After doing these things when I am opening the extension model with the
> UML2 API how can I get the dependency models (it should be base model)
> using the UML2 API?
>
> Regards,
> _ Lasith.
>
Re: How to represent dependency model with UML2 [message #626343 is a reply to message #477171] Thu, 03 April 2008 15:13 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Lasith,

You can model the relationship you are interested in with a PackageImport or
a Dependency relationship.
Load the dependent model in the same resource set as the original model and
you should be able to access types from the dependent model.

Cheers,
- James.


"Lasith" <lasith100@yahoo.com> wrote in message
news:a48f985a013fcef848adf990529f41a7$1@www.eclipse.org...
> Hi All,
>
> I am having a problem with representing a dependency model with UML2 API.
> E.g.
> We have a model called base model(think this is a instance of
> org.eclipse.uml2.uml.Model) with one enumeration called 'enumBase' also we
> have a extension model.
> So I want to apply the type 'enumBase' to the attribute on extension
> model.
>
> So as basic uml theory now base model became as a dependency model for
> extension model. How can I represent this relationship with UML2 API?
>
> After doing these things when I am opening the extension model with the
> UML2 API how can I get the dependency models (it should be base model)
> using the UML2 API?
>
> Regards,
> _ Lasith.
>
Previous Topic:Installation or settings problem
Next Topic:New features of UML2 - Generics, ... (EclipseCon 2008)
Goto Forum:
  


Current Time: Thu Apr 25 08:50:50 GMT 2024

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

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

Back to the top