connectors [message #1151579] |
Wed, 23 October 2013 08:53  |
Eclipse User |
|
|
|
Hi,
I want to create a UML model by EMF that two classes are connected to each other via their ports. So, I created each class with their owned ports. to connect them, I read in the UML specification, that associations can be between any two instances, but connectors in UML 2 is introduced to "specify links between instances playing the connected parts only".
But there is no connector so that I can use or even I cannot create an association which its member ends are ports. I mean for each association, I cannot have two properties as member end that are themselves a kind of property. Does anyone know how I can connect them?
Thanks.
[Updated on: Wed, 23 October 2013 09:04] by Moderator
|
|
|
|
Re: connectors [message #1152117 is a reply to message #1152081] |
Wed, 23 October 2013 16:41  |
Eclipse User |
|
|
|
Hi,
Thank you very much for your reply. I am not sure if I got your answer correctly. I want to have a model that my UML profile I defined before, is applied on it. I use EMF for it.
In the profile, I have 3 meta classes that extend Class, Port and Connector UML meta classes. ports belong to class and connector connects the ports of classes. I defined my profile and seems OK. Next, I want to have a model and apply the defined UML profile. I am able to create classes and their ports and apply the stereotypes on them. But there is no connector element to add between the ports.
So, I changed my profile and used meta class association instead of connector. to be able to connect ports by association. Then when I wanted to apply the profile, I can add the association and apply the stereotype, but cannot assign the defined ports as member ends of association.
Thank you very much.
|
|
|
Powered by
FUDForum. Page generated in 0.03772 seconds