Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » using uml2tools
using uml2tools [message #470789] Fri, 18 May 2007 12:19 Go to next message
Eclipse UserFriend
Originally posted by: nickkirtley.gmail.com

Hi,

I opened the connector example from new->examples->UMLcomponent

I have some questions:

I have created some components and would like to link them using connctors.
I noticed that if you keep the mouse selector on the connector then two
connector icons appear.
I tried to link them to another connector but this was not successful. Can
you tell me what I'm doing wrong?

I'm assuming that when I change the semantics of the diagram I am also
changing the semantics of the underlying model. Is it possible to
subsequently access this model in code? I'm assuming it's
an EMF model.

Also, is it possible to add information like one-one, one-many, many-many to
the connectors between components?

thx in advance,

regards,

Nick
Re: using uml2tools [message #470790 is a reply to message #470789] Fri, 18 May 2007 12:41 Go to previous messageGo to next message
Philippe is currently offline PhilippeFriend
Messages: 100
Registered: July 2009
Senior Member
Hi Nick,

some comments inline...

Nick Kirtley wrote:
> Hi,
>
> I opened the connector example from new->examples->UMLcomponent
>
> I have some questions:
>
> I have created some components and would like to link them using connctors.
> I noticed that if you keep the mouse selector on the connector then two
> connector icons appear.
> I tried to link them to another connector but this was not successful. Can
> you tell me what I'm doing wrong?

I believe that the two icons that appears are the icons that permit to
create attached note and not a connection between component, so it is
why that doesn't work.
By the way, the UMLComponent is, in my opinion, not so much usable yet
due to bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=183754

>
> I'm assuming that when I change the semantics of the diagram I am also
> changing the semantics of the underlying model. Is it possible to
> subsequently access this model in code? I'm assuming it's
> an EMF model.
>
UML2Tools is based on UML2 Metamodel (described in ecore), you can
access the semantic model using the whole UML2 API
http://download.eclipse.org/modeling/mdt/uml2/javadoc/2.1.0/
Another useful link is :
http://dev.eclipse.org/viewcvs/indextools.cgi/uml2-home/docs /articles/Getting_Started_with_UML2/article.html

> Also, is it possible to add information like one-one, one-many, many-many to
> the connectors between components?
>
I don't think that it is possible in Component Diagram,
I suggest you to refer to the UML specification on http://www.uml.org/
to find out more about Components.

> thx in advance,
>
> regards,
>
> Nick
>

regards,
Philippe
Re: using uml2tools [message #470791 is a reply to message #470790] Fri, 18 May 2007 14:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nickkirtley.gmail.com

Hi,

thx for your post,

followup:

Ok so they are annotations, but how do I connect two components then?
Re: using uml2tools [message #470796 is a reply to message #470791] Tue, 22 May 2007 11:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nickkirtley.gmail.com

Hi,

I still haven't gotten an answer regarding connecting two components. This
should be possible because an component diagrams does exactly that.
However I still haven't been able to achieve this within uml2tools.

thx

Nick
Re: using uml2tools [message #470797 is a reply to message #470796] Tue, 22 May 2007 12:04 Go to previous messageGo to next message
Philippe is currently offline PhilippeFriend
Messages: 100
Registered: July 2009
Senior Member
Hi,

regarding the bug that I told you about and the fact that in UML2
components have to be mainly linked using interfaces,
I think it is really impossible to link correctly two components right now.

see these links for some information
http://www.agilemodeling.com/artifacts/componentDiagram.htm
https://bugs.eclipse.org/bugs/show_bug.cgi?id=183754

and wait for M7 as me ;)
Regards
Philippe

Nick Kirtley wrote:
> Hi,
>
> I still haven't gotten an answer regarding connecting two components.
> This should be possible because an component diagrams does exactly that.
> However I still haven't been able to achieve this within uml2tools.
>
> thx
>
> Nick
>
Re: using uml2tools [message #471141 is a reply to message #470796] Mon, 11 June 2007 19:05 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Nick,

From a UML perspective, connectors (uml::Connector) should only be shown on
composite structure diagrams, not Component diagrams.
Connectors are features and require context. You will not find a connector
(neither assembly nor delegating) connecting components on a component
diagram in the official UML spec. Neither will you find connectors
spanning different structured classifiers in the spec. In "black-box"
mode, Components can show their required/provided interfaces (ball/socket)
on their border but they should not be connected in a component diagram.

- James.


"Nick Kirtley" <nickkirtley@gmail.com> wrote in message
news:1e25ab47dee19a382597e4b295315218$1@www.eclipse.org...
> Hi,
>
> I still haven't gotten an answer regarding connecting two components. This
> should be possible because an component diagrams does exactly that.
> However I still haven't been able to achieve this within uml2tools.
>
> thx
>
> Nick
>
Re: using uml2tools [message #594136 is a reply to message #470789] Fri, 18 May 2007 12:41 Go to previous message
Philippe is currently offline PhilippeFriend
Messages: 100
Registered: July 2009
Senior Member
Hi Nick,

some comments inline...

Nick Kirtley wrote:
> Hi,
>
> I opened the connector example from new->examples->UMLcomponent
>
> I have some questions:
>
> I have created some components and would like to link them using connctors.
> I noticed that if you keep the mouse selector on the connector then two
> connector icons appear.
> I tried to link them to another connector but this was not successful. Can
> you tell me what I'm doing wrong?

I believe that the two icons that appears are the icons that permit to
create attached note and not a connection between component, so it is
why that doesn't work.
By the way, the UMLComponent is, in my opinion, not so much usable yet
due to bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=183754

>
> I'm assuming that when I change the semantics of the diagram I am also
> changing the semantics of the underlying model. Is it possible to
> subsequently access this model in code? I'm assuming it's
> an EMF model.
>
UML2Tools is based on UML2 Metamodel (described in ecore), you can
access the semantic model using the whole UML2 API
http://download.eclipse.org/modeling/mdt/uml2/javadoc/2.1.0/
Another useful link is :
http://dev.eclipse.org/viewcvs/indextools.cgi/uml2-home/docs /articles/Getting_Started_with_UML2/article.html

> Also, is it possible to add information like one-one, one-many, many-many to
> the connectors between components?
>
I don't think that it is possible in Component Diagram,
I suggest you to refer to the UML specification on http://www.uml.org/
to find out more about Components.

> thx in advance,
>
> regards,
>
> Nick
>

regards,
Philippe
Re: using uml2tools [message #594149 is a reply to message #470790] Fri, 18 May 2007 14:31 Go to previous message
Eclipse UserFriend
Originally posted by: nickkirtley.gmail.com

Hi,

thx for your post,

followup:

Ok so they are annotations, but how do I connect two components then?
Re: using uml2tools [message #594203 is a reply to message #470791] Tue, 22 May 2007 11:55 Go to previous message
Eclipse UserFriend
Originally posted by: nickkirtley.gmail.com

Hi,

I still haven't gotten an answer regarding connecting two components. This
should be possible because an component diagrams does exactly that.
However I still haven't been able to achieve this within uml2tools.

thx

Nick
Re: using uml2tools [message #594214 is a reply to message #470796] Tue, 22 May 2007 12:04 Go to previous message
Philippe is currently offline PhilippeFriend
Messages: 100
Registered: July 2009
Senior Member
Hi,

regarding the bug that I told you about and the fact that in UML2
components have to be mainly linked using interfaces,
I think it is really impossible to link correctly two components right now.

see these links for some information
http://www.agilemodeling.com/artifacts/componentDiagram.htm
https://bugs.eclipse.org/bugs/show_bug.cgi?id=183754

and wait for M7 as me ;)
Regards
Philippe

Nick Kirtley wrote:
> Hi,
>
> I still haven't gotten an answer regarding connecting two components.
> This should be possible because an component diagrams does exactly that.
> However I still haven't been able to achieve this within uml2tools.
>
> thx
>
> Nick
>
Re: using uml2tools [message #597675 is a reply to message #470796] Mon, 11 June 2007 19:05 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Nick,

From a UML perspective, connectors (uml::Connector) should only be shown on
composite structure diagrams, not Component diagrams.
Connectors are features and require context. You will not find a connector
(neither assembly nor delegating) connecting components on a component
diagram in the official UML spec. Neither will you find connectors
spanning different structured classifiers in the spec. In "black-box"
mode, Components can show their required/provided interfaces (ball/socket)
on their border but they should not be connected in a component diagram.

- James.


"Nick Kirtley" <nickkirtley@gmail.com> wrote in message
news:1e25ab47dee19a382597e4b295315218$1@www.eclipse.org...
> Hi,
>
> I still haven't gotten an answer regarding connecting two components. This
> should be possible because an component diagrams does exactly that.
> However I still haven't been able to achieve this within uml2tools.
>
> thx
>
> Nick
>
Previous Topic:Properties for applied stereotypes
Next Topic:UML Tools Graphical Editor
Goto Forum:
  


Current Time: Tue Mar 19 03:40:11 GMT 2024

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

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

Back to the top