Applying the pattern

 

Model before use of the pattern

As the pattern is applied to attributes and associations, an example of a class with both is presented here.

 

Figure 138. Initial model

 

 

Operating mode

The "Sending events" pattern can be run on an attribute or an association.

 

Figure 139. Calling the pattern

 

 

A dialog box used to create new events then appears.

 

Figure 140. Dialog box for selecting events to create.

 

 

The ... field or button

is used to ...

New event

enter a new event for the given class

Events list

display the events added to the given class

Add

enter a new event for the given class

Remove

remove the selected event from the list of events

OK

run the pattern

Cancel

stop the processing