SysML activity diagram output pins. [message #1639718] |
Fri, 27 February 2015 14:49  |
Eclipse User |
|
|
|
I have a SysML activity diagram (my recreation of Figure 3.6 from A Practical Guide to SysML, 3rd edition) which has some output pins on it. Today I checked for updates and downloaded the latest changes and when Eclipse restarted, the arrows from the ouput pins had disappeared.
If a create a new ouput pin it has the arrow. I went through all the properties and could not find any reason why one would have an arrow and one would not.
In the book, none of the pins (or ports if that is the correct name) have arrows and they can be used for both input and output. I'm guessing that this is a change for SysML 1.4.
Has today's update mistakenly or even purposefully, addded some changes intended for the 1.4 release?
Steve
OK, I did some more experimenting and I found that when an output pin is first attached to an Opaque Action it contains the outgoing arrow icon. When a control flow is attached to the pin, the arrow disappears. Perhaps it also worked this way before the update and I just didn't notice it. I also found that 2 output pins can be connected by a control flow, making one of the output pins, logically, an input pin. In either case, the arrow disappears.
Is this the expected behavior? If so, what is the purpose of the arrow in the pin?
One more thing, how can I hide the control flow label?
Thanks,
Steve
|
|
|
Re: SysML activity diagram output pins. [message #1644991 is a reply to message #1639718] |
Mon, 02 March 2015 04:20   |
Eclipse User |
|
|
|
Hi Stephen,
The arrow is used to display the direction of the pin (InputPin and OutputPin are two different objects). When the Pin is connected to a flow, the arrow of the flow is redundant with the arrow on the pin, so the arrow of the pin is hidden. I see nothing in the UML Specification related to this, so it's probably specific to Papyrus (Or I missed it).
Also, Ports and Pins are two different concepts (Even if their notation is the same, they have different roles/semantics)
I think you shouldn't be able to connect two output pins with the same control flow. Papyrus is probably too permissive here (Especially if this doesn't result in a Validation Error).
The Activity Diagram in Papyrus is the standard UML one; it has nothing to do with SysML (I'm not sure how much SysML customizes/extends/restricts the UML Activity Diagram, but Papyrus doesn't provide any specific support for SysML Activities)
To hide the name Label for all control flows, you can use the following CSS rule:
ControlFlow > Label:name {
visible: false;
}
If you want to hide only a few labels, you can right click on a Control Flow > Filter > Manage Connector Labels
Regards,
Camille
|
|
|
|
|
|
|
Re: SysML activity diagram output pins. [message #1645816 is a reply to message #1645705] |
Mon, 02 March 2015 13:08  |
Eclipse User |
|
|
|
Quote: I see nothing in the UML Specification related to this, so it's probably specific to Papyrus (Or I missed it).
I found this in the UML 2.5 spec in section 16.2.4.
Quote:When ActivityEdges are not present to distinguish InputPins and OutputPins, an optional arrow may be placed inside the Pin
rectangle, as shown below. InputPins have the arrow pointing toward the Action and OutputPins have the arrow pointing away
from the Action.
A couple more things about pins and then I'll shut up about them.
When I drop a pin on an opaque action I would expect it to get placed under the cursor but it gets placed just about anywhere except where I want it. What are the rules for their placement?
It seems that pins cannot be aligned like other drawing objects. All alignment options are greyed out.
How can I hide the pin label? All options under filters are greyed out.
I have some questions about decomposing activities but I will start a different topic for that.
Thanks,
Steve
|
|
|
Powered by
FUDForum. Page generated in 0.46339 seconds