Global variable
definitions are included in package
implementation files after instrumentation method definitions. For
example, the global variable dT in the home heating
system sample is defined in the implementation file for the Default package
as follows:
int dT; /*## attribute dT */
Note: When animation is enabled, the
serialializeGlobalVars() method
serializes the global variables in the model by converting them to
strings so they can be displayed during instrumentation.