ibm Rational Rhapsody 7.5 — API for sending events across address spaces

Sending events across address spaces identify the reactive object will be the published name + the index of the object, for example, if the value of the property PublishedName is truck, then the objects would be identified by truck[0], truck[1] ... Љ C_CG::Class::PublishInstance This boolean property indicates whether or not the object should be published as a reactive instance that is capable of receiving distributed events. In addition, the following property, which is set at the configuration level, allows you to specify a specific target address space when sending events, as described in API for sending events across address spaces :

Љ C_CG::Configuration::AddressSpaceName When you want to send an event to a reactive object in a specific address space, you specify the address space by using the value of this property as a prefix, using the format addressSpaceName :: publishedNameOfReactiveObject . The default value of this property is the name of the relevant component. If the events to be sent across address spaces have no arguments or only primitive types as arguments, such as integers or chars, it is sufficient to just set the above properties. However, if the events to be sent include objects as arguments, you must also set the following properties at the event level:

Љ C_CG::Event::SerializationFunction Name of user-provided serialization function to use Љ C_CG::Event::UnserializationFunction Name of user-provided unserialization function to use For details regarding the required structure for these two user-provided functions, see Functions for serialization/unserialization . API for sending events across address spaces When sending events to reactive objects in different address spaces, the function RidSendRemoteEvent must be used (and not the standard event generation macro RiCGEN):

RiCBoolean RidSendRemoteEvent (const RhpString strReactiveName, struct RiCEvent* const ev, const RhpPositive eventSize); strReactiveName - the published name of the destination reactive object ev - pointer to the event to send eventSize - the size of the event to send Note When providing the strReactiveName parameter for the function RidSendRemoteEvent , you can indicate which address space contains the target object, Rational Rhapsody 753