Question & Answer
Question
What are the various statechart macros in IBM Rational Rhapsody in C/C++ ?
Answer
Below are the lists of statechart macros available with Rhapsody in C++ and C:
IBM Rational Rhapsody in C++
- IS_COMPLETED(state): Check if the specified state reached completion.
- IS_EVENT_TYPE_OF(id): Test if the current event is of the given id's type.
- IS_IN(state): Check if the given state is active.
- OMREPLY(retVal): Set a triggered operation return value.
- OMSETPARAMS(type): Set a local variable called params of the specific event type to enable access to the current event data.
- reply(retVal): Short name for OMREPLY.
- SETPARAMS(type): Short name for OMSETPARAMS.
- OM_CURRENT_EVENT_ID: Get the current event id.
IBM Rational Rhapsody in C
- IS_IN(me,state)/RiCIS_IN(me,state)/CIS_IN(me,state): For a given instance, check if the given state is active.
- IS_COMPLETED(me,state)/RiCIS_COMPLETED(me,state)/CIS_COMPLETED(me,state): Check if the specified state reached completion.
- RiCSETPARAMS(me,type)/CSETPARAMS(me,type): Set a local variable called params of the specific event type to enable access to the current event data.
- RiCREPLY(retVal)/CREPLY(retVal): Set a triggered operation return value.
[{"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":"7.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21402603