Code Architecture and the Generator
To obtain a working prototype of the system, you can extend the Rational Statemate-generated code by implementing those elements and aspects of the system’s behavior that have not been explicitly defined by the controlling statecharts and mini-specs.
The Code Generator does not implement primitive activities whose behavior is not described by a statechart or mini-spec. The supplemental code that you write can be interfaced with the Rational Statemate code. This interface describes when and how these primitive activities “accept” synchronization actions applied to them (start, stop, suspend, resume). It also describes when and how they produce and consume items that flow between them and the rest of the system.
Similarly, the user can implement the interface between the prototype components of the system and its environment since the Code Generator has no information about the structure of the environment’s activities.
The Code Generator supports several structures that help you extend the model, such as the following:
● A set of standard procedures that provide all the necessary flows of events, conditions and data-items between the environment and primitive activities and the rest of the system