Connections with port for SysML

+3 votes
asked Aug 26, 2014 in Wanted features by eruffaldi (140 points)
That's another step toward SysML using PlantUML. This time related to the UML 2.0 port.

The "#-->" is only supported in component diagrams while not in class diagrams.

It could be interesting to have an arrow in the middle of the connection. This is used in SysML ports with flows

See "g1: Torque" in this picture: https://www.magicdraw.com/images/noteworthy/165/sysml/ExtractStructure06.PNG

Or this from the SysML 1.3 spec (page 60): https://dl.dropboxusercontent.com/u/146279/Screen%20Shot%202014-08-26%20at%2014.04.44.png

1 Answer

+1 vote
answered Aug 26, 2014 by plantuml (295,000 points)

Thanks for the idea.
The connection port has been enable for classes in the following beta: https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

About the arrow in the middle of the connection, you can use:

@startuml
class engine
class transmission
engine #- transmission : Torque >
@enduml

which is not exacly what you are expecting.

The most difficult part is to find the right syntax.
What do you think about:

engine #->- transmission : Torque (for vertical line)
engine #>- transmission : Torque (for horizontal line)


We are just wondering if the PlantUML syntax is not going to be too cryptic...
 

commented Aug 29, 2014 by anonymous
Thanks for the clarification. Syntax is a challenge, but also UML 2.0 and SysML are very complex in terms of visual elements.

I will get back on SysML

Best,
Emanuele
commented Jul 28, 2019 by ed
No these are two different things... a blackened triangle above the line is there for reading purposes (i.e. helps to know the direction of reading for binary associations)... an information flow in UML(or the derived item flow in SysML)... must be a blackened triangle on the association itself to denote flows
...