Supplementing the Model with Handwritten Code : Referencing Model Elements : Referencing Events

Referencing Events

Events are primitive elements and are special in the sense that software languages do not support them directly.

Note: Events are not allowed in subroutines as inputs, outputs, local variables, or accessible as global elements.

Events, in relation to handwritten code, are used in the following manner:

Callbacks—You can associate a callback with a Rational Statemate event.
Tasks—You can use the wait_for_event command to react to a Rational Statemate event.