Supplementing Generated C : Scheduler Package : Interfacing With the Rational Statemate Model

Interfacing With the Rational Statemate Model

The model elements are abstract data types that can be accessed by procedures produced by the Code Generator.

There are two ways to interface with the Rational Statemate model:

Procedures to modify values of events, conditions and data-items. You have to call them in your code whenever you wish to perform the manipulations on these elements. These procedures are discussed in the following subsections.
Set callback functions to respond to changes in the system. The code guarantees that such a callback is called whenever the corresponding change occurs. This can be, for example, displaying a message on the screen or assignment of an appropriate value to a variable used in the user code.