About generating code for files
During code generation, files produce full production code, including behavioral code. In terms of their modeling properties, modeled files are like implicit singleton objects.
Note the following information:
- For an active or a reactive file, IBM® Engineering Systems Design Rhapsody®
generates a public, implicit object (singleton) that uses the active or reactive functionality. The
name of the singleton is the name of the file. Note: The singleton instance is defined in the implementation source file, not in the package source file.
- For a variable with a Constant modifier, the product generates a
#define
statement. For example:
#define MAX 66