This protected attribute determines whether an event needs to be deleted after it is consumed. The possible values for this flag are as follows:
By default, every event is deleted after it is consumed by the statechart. The thread sends the event, the reactive does what has to be done to consume the event, and when there is nothing left to do, the thread (which maintains the event queue) deletes the event.
deleteAfterConsume controls whether to delete the event. You might choose not to delete an event, especially when events are statically allocated. In such cases, you need to set deleteAfterConsume to FALSE.
It is defined as follows:
OMBoolean
deleteAfterConsume;
This protected attribute specifies an OMReactive instance.
It is defined as follows:
OMReactive*
destination;
The OMReactive class is defined in omreactive.h.
This protected attribute specifies whether an event is a framework event. The possible values are as follows:
Some events are used internally within the IBM® Rational® Rhapsody® framework; these events require special attention. For example, some internal events are not instrumented in order to minimize system costs. If frameworkEvent is set to TRUE, less information is gathered for the event.
Typically, you do not need to change the default value of frameworkEvent.
It
is defined as follows:
OMBoolean frameworkEvent;
This protected attribute specifies a value for an event ID.
Every event has an ID. Code generation automatically generates sequential IDs, but you can also specify the ID associated with an event. You might want to do this, for example, to maintain the ID across compilation, add more events, do special things with an event, or use a specific ID because you are sending it out of the application.
You can specify the event ID in the Rational Rhapsody properties at two levels:
It
is defined as follows:
short
lId;
See the Constants section for the list of constant values for lId.