This
method consumes a triggered operation event (synchronous event). This
is a virtual function and can be overridden. The takeTrigger method
works in the following way:
- First, it calls
the processEvent method
to
consume the event.
- Next, it calls the shouldTerminate and setShouldDelete methods.
If (shouldTerminate() && shouldDelete()) is
1 (or TRUE), takeTrigger deletes
the event.
Signaturevirtual void takeTrigger (OMEvent* ev);
Parametersev
Specifies the triggered event
NotesA
triggered operation is a synchronous event. The event is sent to the OMReactive instance
and consumed immediately. Most statechart events are asynchronous.
The event is sent to the OMReactive instance,
but is not necessarily consumed immediately.