Classes and types Port code generation in C In C, code can be generated for the following types of ports: Љ Rapid ports (see Using rapid ports ) Љ Standard ports where the provided and required interfaces contain only event receptions Action language for sending events The following macros are used for working with ports and events: Љ Generating and sending an event via a port: RiCGEN_PORT ([pointer to port], [event]) Examples: RiCGEN_PORT (me->myPort, myEvent()) For ports with multiplicity greater than one: RiCGEN_PORT (me->myPort[2], myEvent()) Љ Detecting the input port through which an event has been sent: RiCIS_PORT ([pointer to port]) Examples:
RiCIS_PORT(me->myPort) This returns True if the event currently being handled by the Rational Rhapsody Developer for C Reactive (instantiated as me) was sent via the port myPort. For ports with multiplicity greater than one: RiCIS_PORT(me->myPort[2]) 104 User Guide