Multiple Interfaces per Component (edge)

+2 votes
asked Mar 9, 2013 in Closed question / help by anonymous

Hi,

We are just about to give PlantUML another try for Component Diagrams. The Final goal would be the support for FMC BlockDiagrams, but lets stay with Component so far as it comes pretty close.

I was trying to add a couple of Interfaces to one Component at the same edge. But it does not work the way expected.

@startuml

[Component] -left-> left 

[Component] -right-> right

[Component] -right-> right2

[Component] -up-> up

[Component] -down-> down

@enduml

I would like to have the Interfaces in Parallel to the edge of the component (agent) as seen in the

FMC/TAM Modeling Examples:

http://www.fmc-modeling.org/download/notation_reference/Reference_Sheet-Block_Diagram.pdf

commented Mar 9, 2013 by anonymous
And may this would work even without explicit directions and Plant would figure out the right placement?

1 Answer

+1 vote
answered Jun 14, 2016 by petolone (140 points)
Hear, hear Anonymous :)

I am facing exactly the same problem and it should be easy modification to enable several interfaces in parallel on the same edge.
commented Jun 14, 2016 by plantuml (252,100 points)
Hi,
Could you provide a simple & concrete example of what you are expecting ?
Thanks!
commented Jun 16, 2016 by petolone (140 points)
edited Jun 16, 2016 by petolone
Hi,

Here is a link to a figure that illustrates what I would like to see:
https://drive.google.com/file/d/0B6L5ceNX7e2MT3pDZWFrUEl4N2plOFFJcWdpdTgwbHdlUHVj/view?usp=drivesdk

Same source as in the original post i.s.
@startuml
[Component] -left-> left
[Component] -right-> right
[Component] -right-> right2
[Component] -up-> up
[Component] -down-> down
@enduml
commented Jun 16, 2016 by plantuml (252,100 points)
Ok.
Thanks for the example.
This going to be hard to do with Graphviz.
You can try:
@startuml
[Component] -left-> left
[Component] -right-> right
[Component] -[norank]-> right2
[Component] -up-> up
[Component] -down--> down
right-[hidden]-right2
@enduml

http://www.plantuml.com/plantuml/uml/YtREpot8pqlDAubLqCr9JIlHjLC0KGfSqSWoHPdf6I0fC8qg5PsNNvIObnqBapL2bIuj04gK5g0AfkINv-a2nK4q5yJiw8pCb9JKl5Y8LKO0

But it's not exactly your need.
We'll think about it...
commented Dec 12, 2017 by mawi (500 points)
Hi, good example diagram @petolone.

We use this drawing style very often.
It would be awesome to have some basic support for it.

We often use it to display integration chains across several systems. You would have:

system A -- many interfaces  <--> several interfaces-- system B ... etc

Here is an example image:
https://pasteboard.co/GXQoxNw.png

BR! /marcus
...