SysML activity diagram output pins. [message #1639718] |
Fri, 27 February 2015 19:49 |
Stephen Blackwell Messages: 138 Registered: March 2014 |
Senior Member |
|
|
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 09:20 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
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
Camille Letavernier
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 1.02883 seconds