RiCGEN() has the same effect as CGEN().
For example, to send an Fstarted() event to an instance itsRoom[1], add the following code to the action part of a transition:
RiCGEN(me->itsRoom[1], Fstarted());
The definition of RiCGEN() is as follows:
#define RiCGEN(INSTANCE,EVENT) \
{ \
if ((INSTANCE) != NULL) { \
RiCReactive * reactive = &((INSTANCE)->ric_reactive);\
RiCEvent * event = &(RiC_Create_##EVENT->ric_event); \
RiCReactive_gen(reactive, event, RiCFALSE); \
} \
}