Home » Modeling » UML2 Tools » Properties/Parts with Ports
Properties/Parts with Ports [message #473373] |
Mon, 10 March 2008 12:24  |
Eclipse User |
|
|
|
Hi,
I checked out the examples from the CVS and discovered the "Port examples" composite structure diagram (in
org.eclipse.uml2.diagram.examples.clazz\diagram\07-02-03\09 Composite Structures\). Actually, I want to draw diagrams
just like these but this seems to be yet difficult:
- How can I draw parts/properties inside classes (not as a list). Okay, I could/would use Components here.
- How can I show/draw ports on the parts/properties?
The example suggest that this should be possible somehow. Is it?
Thanks
Joel
|
|
|
Re: Properties/Parts with Ports [message #473374 is a reply to message #473373] |
Mon, 10 March 2008 15:56   |
Eclipse User |
|
|
|
Hi Joel,
> - How can I draw parts/properties inside classes (not as a list).
Palette entry was mixed up here. I submitted #222108 'Allow to create elements
inside expanded Class'. So, first update your source code and after that:
Create Class, invoke 'Show as->Expanded Class' action. Create inner property
by using Attribute palette entry.
(Or Create Class, invoke _'Show as->Class3'_ action. Create inner property
by using _Class_ palette entry if you still use old sources.)
> - How can I show/draw ports on the parts/properties?
There are quite sophisticated rules here. Let's look at them in the context
of the given example.
These port are just one more presentation of the ports of typing classifier.
Look, there is a 'e' attribute inside Car class. 'p' port is shown on its
boundary, this p port is the same port that is located on boundary of Engine.
Engine is a typing classifier for 'e' property.
These ports are shown if there is a connector link going to them. It means,
that ConnectorEnd has 'partWithPort' referencing to appropriate property.
In our example there is a Connector from Car::rear to Engine::p, this Connector
referencing Car::e in its partWithPort property.
Bugzilla #209651 'Port on the boundary of Part' has some implementation
details. Note, #215245 'Refresh connector when PartWithPort changes' which
is still open.
Good luck,
Tatiana.
|
|
|
Re: Properties/Parts with Ports [message #473375 is a reply to message #473374] |
Tue, 11 March 2008 03:12   |
Eclipse User |
|
|
|
Tatiana Fesenko wrote:
> Hi Joel,
>
>> - How can I draw parts/properties inside classes (not as a list).
> Palette entry was mixed up here. I submitted #222108 'Allow to create
> elements inside expanded Class'. So, first update your source code and
> after that:
> Create Class, invoke 'Show as->Expanded Class' action. Create inner
> property by using Attribute palette entry. (Or Create Class, invoke
> _'Show as->Class3'_ action. Create inner property by using _Class_
> palette entry if you still use old sources.)
>
>> - How can I show/draw ports on the parts/properties?
> There are quite sophisticated rules here. Let's look at them in the
> context of the given example. These port are just one more presentation
> of the ports of typing classifier. Look, there is a 'e' attribute inside
> Car class. 'p' port is shown on its boundary, this p port is the same
> port that is located on boundary of Engine. Engine is a typing
> classifier for 'e' property.
> These ports are shown if there is a connector link going to them. It
> means, that ConnectorEnd has 'partWithPort' referencing to appropriate
> property. In our example there is a Connector from Car::rear to
> Engine::p, this Connector referencing Car::e in its partWithPort
> property. Bugzilla #209651 'Port on the boundary of Part' has some
> implementation details. Note, #215245 'Refresh connector when
> PartWithPort changes' which is still open.
> Good luck,
> Tatiana.
>
Tatiana,
I actually think that by default all ports from the classifier should be shown on the borders of the parts of this type.
At least there should be some context menu way to "make them appear" so that the parts can be connected the way you want
to connect them.
Thanks for helping
Joel
|
|
| |
Re: Properties/Parts with Ports [message #473377 is a reply to message #473376] |
Tue, 11 March 2008 10:50  |
Eclipse User |
|
|
|
Tatiana Fesenko wrote:
> Hi Joel,
>
> I agree with you. There should be a mechanizm to show/hide required port
> on a part. However, I don't think such ports should be displayed always,
> it could litter the diagram. I submitted bugzilla #222211 'Port on Part
> visibility'.
Hi Tatiana,
sounds good, thanks.
These features should be the same for the Component Diagram, too. Do you agree?
Cheers
Joel
> Best wishes,
> Tatiana.
>
>> Tatiana,
>>
>> I actually think that by default all ports from the classifier should
>> be shown on the borders of the parts of this type.
>>
>> At least there should be some context menu way to "make them appear"
>> so that the parts can be connected the way you want
>>
>> to connect them.
>>
>> Thanks for helping
>>
>> Joel
>>
>
>
|
|
|
Re: Properties/Parts with Ports [message #618483 is a reply to message #473373] |
Mon, 10 March 2008 15:56  |
Eclipse User |
|
|
|
Hi Joel,
> - How can I draw parts/properties inside classes (not as a list).
Palette entry was mixed up here. I submitted #222108 'Allow to create elements
inside expanded Class'. So, first update your source code and after that:
Create Class, invoke 'Show as->Expanded Class' action. Create inner property
by using Attribute palette entry.
(Or Create Class, invoke _'Show as->Class3'_ action. Create inner property
by using _Class_ palette entry if you still use old sources.)
> - How can I show/draw ports on the parts/properties?
There are quite sophisticated rules here. Let's look at them in the context
of the given example.
These port are just one more presentation of the ports of typing classifier.
Look, there is a 'e' attribute inside Car class. 'p' port is shown on its
boundary, this p port is the same port that is located on boundary of Engine.
Engine is a typing classifier for 'e' property.
These ports are shown if there is a connector link going to them. It means,
that ConnectorEnd has 'partWithPort' referencing to appropriate property.
In our example there is a Connector from Car::rear to Engine::p, this Connector
referencing Car::e in its partWithPort property.
Bugzilla #209651 'Port on the boundary of Part' has some implementation
details. Note, #215245 'Refresh connector when PartWithPort changes' which
is still open.
Good luck,
Tatiana.
|
|
|
Re: Properties/Parts with Ports [message #618486 is a reply to message #473374] |
Tue, 11 March 2008 03:12  |
Eclipse User |
|
|
|
Tatiana Fesenko wrote:
> Hi Joel,
>
>> - How can I draw parts/properties inside classes (not as a list).
> Palette entry was mixed up here. I submitted #222108 'Allow to create
> elements inside expanded Class'. So, first update your source code and
> after that:
> Create Class, invoke 'Show as->Expanded Class' action. Create inner
> property by using Attribute palette entry. (Or Create Class, invoke
> _'Show as->Class3'_ action. Create inner property by using _Class_
> palette entry if you still use old sources.)
>
>> - How can I show/draw ports on the parts/properties?
> There are quite sophisticated rules here. Let's look at them in the
> context of the given example. These port are just one more presentation
> of the ports of typing classifier. Look, there is a 'e' attribute inside
> Car class. 'p' port is shown on its boundary, this p port is the same
> port that is located on boundary of Engine. Engine is a typing
> classifier for 'e' property.
> These ports are shown if there is a connector link going to them. It
> means, that ConnectorEnd has 'partWithPort' referencing to appropriate
> property. In our example there is a Connector from Car::rear to
> Engine::p, this Connector referencing Car::e in its partWithPort
> property. Bugzilla #209651 'Port on the boundary of Part' has some
> implementation details. Note, #215245 'Refresh connector when
> PartWithPort changes' which is still open.
> Good luck,
> Tatiana.
>
Tatiana,
I actually think that by default all ports from the classifier should be shown on the borders of the parts of this type.
At least there should be some context menu way to "make them appear" so that the parts can be connected the way you want
to connect them.
Thanks for helping
Joel
|
|
|
Re: Properties/Parts with Ports [message #618488 is a reply to message #473375] |
Tue, 11 March 2008 07:26  |
Eclipse User |
|
|
|
Hi Joel,
I agree with you. There should be a mechanizm to show/hide required port
on a part. However, I don't think such ports should be displayed always,
it could litter the diagram.
I submitted bugzilla #222211 'Port on Part visibility'.
Best wishes,
Tatiana.
> Tatiana,
>
> I actually think that by default all ports from the classifier should
> be shown on the borders of the parts of this type.
>
> At least there should be some context menu way to "make them appear"
> so that the parts can be connected the way you want
>
> to connect them.
>
> Thanks for helping
>
> Joel
>
|
|
|
Re: Properties/Parts with Ports [message #618491 is a reply to message #473376] |
Tue, 11 March 2008 10:50  |
Eclipse User |
|
|
|
Tatiana Fesenko wrote:
> Hi Joel,
>
> I agree with you. There should be a mechanizm to show/hide required port
> on a part. However, I don't think such ports should be displayed always,
> it could litter the diagram. I submitted bugzilla #222211 'Port on Part
> visibility'.
Hi Tatiana,
sounds good, thanks.
These features should be the same for the Component Diagram, too. Do you agree?
Cheers
Joel
> Best wishes,
> Tatiana.
>
>> Tatiana,
>>
>> I actually think that by default all ports from the classifier should
>> be shown on the borders of the parts of this type.
>>
>> At least there should be some context menu way to "make them appear"
>> so that the parts can be connected the way you want
>>
>> to connect them.
>>
>> Thanks for helping
>>
>> Joel
>>
>
>
|
|
|
Goto Forum:
Current Time: Wed Jul 23 13:22:48 EDT 2025
Powered by FUDForum. Page generated in 0.09108 seconds
|