![]() |
![]() |
![]() |
![]() |
![]() |
Some Preparatory Work
Instead of continue working on the original DemonGame system, we suggest you to continue from a version that is better designed for introducing SDL-92. The changes that have been made are the following:
- All signals from the environment (Newgame, Endgame, Probe, -Result) are now directed to the administrating process Main, that will send them further to the Game process, if there is such a process.
- The Bump signal is also sent to the process Main, which in turn transfers it to the Game process. This eliminates the annoying behavior when a signal is sent to a nonexisting receiver.
- Signal routes and signal lists have been updated to reflect the new routing of signals.
- The internal signal GameOver is really not necessary and is therefore replaced by the signal EndGame.
From the user's point of view, the system will show the same functionality as before, but is more robust.
The new versions of the block GameBlock and the process Main are depicted below, in Figure 147 and Figure 148.
- Make a new empty directory sdl92 of your own (under ~/demongame on UNIX, and under
C:\IBM\Rational\SDL_TTCN_Suite6.3\work in Windows).- Copy all files in the directory $telelogic/sdt/examples/demongame/sdl92/process_type (on UNIX), or C:\IBM\Rational\SDL_TTCN_Suite6.3\sdt\examples\demongame\sdl92\process_type (in Windows), to this new directory.
- Start the SDL Suite and open the system file -demongame.sdt in this new directory with the Organizer. (You will find copies of the diagrams building up the complete system).
You should recognize the system DemonGame, with the modifications as described above.
Nearly all versions of the diagrams shown in the following exercises are available in the directory you created above. You can either draw a diagram to learn how to use SDL-92 in the SDL Editor, or copy (or connect to) the pre-made version of the diagram if you do not wish to do this.
The exact layout of your diagrams may differ slightly from the above.
The exact layout of your diagrams may differ slightly from the above.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |