Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you show events in UML Class Diagrams? [closed]

Tags:

uml

visio

This one has me stumped regularly while creating top level class diagrams for documentation. Methods and attributes/fields are easy to model. I usually end up adding a method named EvChanged to indicate a .Net event Changed.

What is the right way to show that a type publishes a specific event?

like image 688
Gishu Avatar asked Sep 09 '08 09:09

Gishu


People also ask

How do you show events in sequence diagram?

The receiver finds the addressee (Target) and calls its corresponding method (Target. OnMyEvent()). To emphasize that this call is event-triggered, I introduce a stereotype called "Event". This scheme may look somewhat clumsy, but, to me, it covers the case.

What does a +/- symbol mean in an UML diagram?

The plus signs indicate the means you must use to interact with the properties and methods of the class. In other words, the Public items of a class define the interface for the class object and how you must interact with it.

How do you indicate final in UML?

Class (i.e. static) methods and fields are indicated by underlining. Constant (i.e. final) fields are indicated via naming convention: constants should be in ALL_CAPS.


1 Answers

Just add an «event» stereotype to a classifier attribute.

like image 77
Mark Cidade Avatar answered Sep 22 '22 07:09

Mark Cidade