Composite Structure Diagrams?

+6 votes
asked Apr 18, 2013 in Wanted features by voelter (120 points)
Hi guys,

are you planning to add support for composite structure diagrams to PlantUML, where components and ports can be hierarchically nested? And example is here:
   http://warren.chinalle.com/wp-content/uploads/2008/01/componentDiagram.png

AFAIK this is not so simple with GraphViz, but it would be very helpful :-)

Thanks,

Markus (voelter@acm.org)

1 Answer

+2 votes
answered Apr 18, 2013 by plantuml (257,860 points)

Hi,

You should try this :

   @startuml
    boundary b1
    control c1
    b1 -(0)- c1

    component comp1
    interface interf1
    comp1 #~~( interf1

    :mode1actor: -0)- fooa1
    :mode1actorl: -le0)- foo1l

    [component1] 0)-(0-(0 [componentC]
    () component3 )-0-(0 "foo" [componentC]

    [aze1] #-->> [aze2]
    @enduml

http://www.plantuml.com/plantuml/img/POwn3i8W48Pt4z_XqYumaFHqwz35np0CG6bYGZb3wA13drsaL8nURhZx_u-VqxJuKOK7Q3mU89KX7mCvC6NN289rN6HXH-OxUUjZdWftyz66IHbR9gmiGhkkhEgRqyyqMbGcKkX1l7-OY1J-cIwvpXOVtVxy-ha29IINTQc_r8lSECRhlMVW8cDDYcf-u1AhdZO5ja8CGrvEyWK0

All this is undocumented, but we are working on this...

Feedback & suggestions are welcome!

Regards,

Arnaud

commented Apr 18, 2013 by voelter (120 points)
That is indeed very promising! The nesting of components, which is the crucial feature, is still missing, right? But it sounds like you're going to tackle this eventually.

Thank you for your answer, this looks promising!

Markus
commented Apr 29, 2013 by anonymous
wow! Very impressed, exactly what we are looking for as well! many thanks...
commented Sep 23, 2013 by p1tt1 (140 points)
mh...

but plantuml can't draw nested structures like this
http://upload.wikimedia.org/wikipedia/commons/b/b8/Policy_Admin_Component_Diagram.PNG
commented Nov 18, 2013 by Delatour (110 points)
OK, we are not too far from a composite structure diagram, that's very nice...  (could we put "part" instead of "component" ?).
Here an another example of a composite structure diagram :
http://www.uml-diagrams.org/composite-structure-diagrams.html
commented Nov 19, 2013 by anonymous
Hi Delatour, this sounds very very nice! Can I try it out somehow?
Markus
commented Nov 19, 2013 by Delatour (110 points)
Sorry, I was not clear but the example given in the link is something I want, not something I've done with plantUML.

By the way, mbeddr Project is a very nice project too !
...