Display Consume and Provide in Component Diagramm

+1 vote
asked Jul 10, 2015 in Wanted features by anonymous

Hey guys.

Is it possible to display the providing and consuming component of an interface like this?

 

Best regards,

Timo

2 Answers

0 votes
answered Jul 10, 2015 by TJP (400 points)
OK, I found a solution by just trying to add a open bracket on the Interface.

I would prefere to update the UserGuide with all the new "wanted" features.

 

Thank you!
0 votes
answered Jul 27, 2015 by TJP (400 points)

Hey guys,

for all who do not know how to implement the provide and comsume notation,

here is a little example for you:

@startuml

/'##### Skinparameter #####'/

skinparam shadowing false
skinparam componentStyle uml2

/'##### Skinparameter #####'/

/'##### Component #####'/


!include ./../CompSpec/component_Cusomter 'as customer
!include ./../CompSpec/component_VendingMachine 'VendingMachine

/'##### Component #####'/

/'##### Interface #####'/

interface Soda
interface Icetea


/'##### Interface #####'/

/'##### Diagram #####'/

customer -down-( Icetea
customer -down-( Soda

VendingMachine -up- Icetea : <<provide>>
VendingMachine -up- Soda : <<provide>>

/'##### Diagram #####'/

/'##### Commentary #####'/



/'##### Commentary #####'/

@enduml

...