Supplementing the Model with Handwritten Code : Referencing Model Elements

Referencing Model Elements

Communication between the handwritten code and the generated code is accomplished through the semantics of the following information elements:

It is important to understand how to access the values of these elements and how to modify them. Each element has the following representation in the C target language:

When you wish to pass structured elements (such as records and unions) from Rational Statemate to your handwritten code, you must define these elements as user-defined types.

When you write code in the template, refer to all elements by the names you assigned in the model. This applies to parameters of the subroutine, its local and global variables, to names of types, constants, and any other subroutines that you may use for the implementation.

Note: Write all element names in uppercase.