This method specifies whether a reactive object is deleted by its active object when it reaches a termination connector in its state machine. This permits statically allocated objects to have a termination connector in their state machine.
This method is called by OMReactive, the constructor for a reactive object.
Public
void setShouldDelete (OMBoolean b)
b
If this is TRUE, the OMReactive instance is deleted. Otherwise, it is not deleted.
By default, this value is TRUE. To statically allocate a reactive object with a termination connector, you must explicitly call setShouldDelete(FALSE).