Adding User-Written 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. 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.