![]() |
![]() |
![]() |
![]() |
![]() |
The Simulator Monitor
A simulator generated by the SDL Suite consists of two main parts; the application itself (the simulated SDL system), and an interactive monitor system. The monitor system is the interface between the user and the simulated system. For more information on the structure of a simulator and the features of the simulator monitor, see Structure of a Simulator.
Monitor User Interfaces
Two different user interfaces are provided for the simulator monitor, a textual and a graphical.
The textual interface only allows commands to be entered from the keyboard, using the syntax described in the section Syntax of Monitor Commands.
The graphical interface still allows commands to be entered from the keyboard in the same way, but also provides buttons, menus and dialogs for easy access to commands and other features.
The textual interface is invoked by executing the generated simulator directly from the operating system prompt. This is called running a simulator in textual mode. When started, the simulator responds with the following text:
Welcome to SDL SIMULATOR. Simulating system <system>Command :Another prompt may appear if the SDL system contains external synonyms. For more information, see Supplying Values of External Synonyms.
The graphical interface, known as the Simulator UI, runs in a separate window. It is started from the Organizer by selecting SDL > Simulator UI from the Tools menu. The Simulator UI is described in Graphical User Interface.
If a file called siminit.com exists in the current directory an implicit Include-File command will be done on this file at startup.
Activating the Monitor
Commands can be issued to the interactive monitor system when it becomes active. The simulator's monitor system becomes active:
- When the simulator is started.
- When the last command was Next-Transition or Next-Visible-Transition and the transitions initiated by this command have completed.
- When the last command was Next-Symbol or Step-Symbol and one SDL symbol has been executed.
- When the last command was Next-Statement or Step-Statement and one SDL statement has been executed.
- When the last command was Finish and the currently executing procedure has returned.
- When the last command was Proceed-Until and the value of the simulation time is, for the first time, equal to the time given as a parameter to the command.
- When the last command was Proceed-To-Timer and all transitions up to the next timer output have been executed.
- Immediately before a transition matching a transition breakpoint set by the command Breakpoint-Transition.
- Immediately before a symbol matching a symbol breakpoint set by the command Breakpoint-At.
- Immediately after an output symbol that contains an output matching an output breakpoint set by the command Breakpoint-Output.
- Immediately after a symbol or assignment statement where a variable is changed matching a variable breakpoint set by the command Breakpoint-Variable.
- When there is no transition that can be executed, that is, the system is completely inactive. (On UNIX, if no environment is present and the command Go-Forever was issued.)
- Immediately after a symbol that included an SDL semantic error.
- In the Simulator UI, when the Break button is clicked in the Execute button module; in textual mode, when <Return> is pressed during the output of trace information. The interactive monitor then becomes active directly after the current symbol has been executed.
No other characters may be typed before <Return> is pressed.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |