Download 58 Building an Application

Transcript
Chapter
58
Building an Application
When you run the Phone system, start the program from two (or more)
shell tools (on UNIX). Each instance of the program will then print:
My Pid: 2311
Connect me to:
You should answer these questions in such a way that a ring is formed
by the programs. When the initialization is completed for a program it
prints:
******** Welcome to SDT Phone System ********
phone ->
The program is now ready to receive lines printed on the keyboard and
messages sent from other programs. A Display signal received from another program is printed as follows:
display -> the line received in Display signal
Where to Find the Example
All files concerning this example may be found in the directory:
<installation directory>/sdt/examples/phone
Use these files if you only want to look at the source files and if you are
using a Sun workstation you could try the executing versions of the program. Otherwise you should copy the files to one of your own directories. Please be sure not to change the original files.
In the directory you will find the following files:
2734
File name
Purpose
Phone.sdt
The system file
Phone.ssy
Represents the SDL system
PhoneBl.sbk
Represents the SDL block
PhonePr.spr
Represents the SDL process
phone.pr
The generated PR file after GR to PR
phone.c
The generated C file after C code generation
phone.ifc
The generated .ifc file
,um-st1
Telelogic Tau 4.5 User’s Manual
July 2003