![]() |
![]() |
![]() |
![]() |
![]() |
Kernel Operation Modes
In order to appreciate the way the TTCN Exerciser operates, it is important to get an insight in the different global modes it may be in. Each of these modes are outlined in this section. The full global kernel state and behavior is a combination of these modes, and to get the desired behavior, it is good to know how to toggle between the modes at will.
Execution Modes
These are the three major modes of operation of the TTCN Exerciser:
- Simulation mode
- This mode has all PCOs simulated, and input is required from the test operator or user-defined scripts. In essence, there is no IUT and all messages that are sent are only indicated in the various test logs. All messages that are received must be specified by the test operator or a test execution script.
- Target execution mode
- Mixed mode
Timer Modes
These are the two timer modes:
- Realtime
- This mode uses the system clock to provide timing information. This is the normal mode to run in for target testers. In the case a tester is paused or a breakpoint is reached, the timer mode will be toggled to discrete time simulation. You can resume it by setting the timer mode to realtime. See Realtime for more information. The realtime mode is recognized by all log messages being prefixed with an asterisk (*).
- Discrete time simulation
- This mode only increments time when a timeout command is received. It is the default mode for simulations. In effect, the mode keeps track of running timers and their expiration time. This mode is automatically toggled to when the execution is stopped or paused, as well as for many of the kernel commands. See Discrete for more information. The discrete time simulation mode is recognized by all log messages being prefixed with a hyphen (-).
Control Modes
- Simulator UI control
- This mode is for using the SDL and TTCN Integrated Simulator user interface protocol in communications with the operator. The mode appends a set of tags to all messages that are emitted. It is assumed that the tester is started by the SDL and TTCN Integrated Simulator user interface, but the mode is also useful if logs are to be processed by other tools.
- Command line control
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |