can a note belong to several components?

0 votes
asked Dec 22, 2017 in Wanted features by boshka (3,940 points)
In component diagram, can a note belong to several components?

such as

component a {
}
component b {
}
a->b:intertact
note left of a, right of b: note for a and b

1 Answer

0 votes
answered Jan 2, 2018 by mgrol (3,150 points)

Hi,

you need to declare a note like this:

@startuml
component a {
}
component b {
}
a->b:intertact

note as N1
Your note text
end note

N1 .. a
N1 .. b
@enduml

Best Regards,

Michael

commented Jan 11, 2018 by boshka (3,940 points)
Thank you! Can I do something similar in sequences?
I mean to attach same note to several events
commented Jan 11, 2018 by mgrol (3,150 points)
Hi,

not that I could think of. In sequence diagrams you need to add your note each time you want to put it somewhere. Links are IMHO note possible.

BR,
Michael

BR.
commented Jan 12, 2018 by boshka (3,940 points)
BTW, in component diagram, can the same (as proposed by Michael) be implemented the way that it is also achieved in the simpler manner i originally proposed?
I have an automated component diagram generator (from JSON model) and the method, proposed by Michael looks complex in realization in my specific case.
...