Typical uml diagram for displaying events

I have a couple of modules. They communicate with each other through events.

What UML diagram is commonly used to show this?

Is a custom diagram not using uml used?

Any examples?

+4
source share
3 answers

I think you definitely want a sequence diagram to show all the interactions between the modules in a sequence. This is the preferred way to present a sequence of asynchronous messages between components.

+2
source

If you want to express the fact that module A fires event E, which is handled by module B, I suggest a static diagram to show the structure of your architecture.

In particular, I would use a class diagram in which I could draw:

  • modules A and B (classes with a stereotype)
  • event E (i.e., another class with the stereotype event )
  • association named subscribe between B and E
  • an association named publish between A and E.
+1
source

In general, you want to use a "behavioral" diagram. There are several flavors. Which one you choose depends on the goal that this chart wants to convey.

http://www.visual-paradigm.com/product/vpuml/provides/behavioralmodeling.jsp

0
source

All Articles