takeTrigger

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:

  1. First, it calls the processEvent method to consume the event.
  2. Next, it calls the shouldTerminate and setShouldDelete methods. If (shouldTerminate() && shouldDelete()) is 1 (or TRUE), takeTrigger deletes the event.
Visibility
Public
Signature
virtual void takeTrigger (OMEvent* ev);
Parameters
ev

Specifies the triggered event

Notes

A 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.


Feedback