IBM Support

How to send events across address spaces with Rhapsody model

Question & Answer


Question

How do you send events accross address spaces with IBM Rational Rhapsody?

Cause

Event could be used as a trigger in a statechart to cause states transition. You can send events to reactive instances in the same or even different address spaces.

Answer

You need to set corresponding properties in your models to allow use of multiple address space feature.

Next, you call RidSendRemoteEvent other than RiCGEN to send the event to reactive instance in different address space. You could also use macro RiCGENREMOTE.

You can find a Rhapsody 8.1 sample model built with Visual Studio as attached below.

In model RiC_CrossAddress.rpy, you could see operation sRemoteE() defined in Default::clsSend using RiCGENREMOTE macro to send evRemote to recCom::clsRec instance which is actually defined in a different address space with RiC_CrossAdressRec.rpy model.

NOTE:

  • This feature is not applicable to send events to reactive instances on a different computer.
  • This feature can only be applied to Rhapsody in C model.
  • This feature can be used with following target environments.
    • INTEGRITY5
    • VxWorks6.2diab_RTP
    • VxWorks6.2gnu_RTP

 
Disclaimer

All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.


sample.zipsample.zip

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21681666