How to represent dependency model with UML2 [message #477171] |
Wed, 02 April 2008 07:46  |
Eclipse User |
|
|
|
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 11:13  |
Eclipse User |
|
|
|
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 11:13  |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.04520 seconds