Table of Contents Previous Chapter 3 Tutorial: A First Example

3 Tutorial: A First Example

Welcome to SDT! SDT stands for SDL Design Tool. SDT is a state-of-the-art tool for designing and specifying systems, in particular real-time systems. SDT supports the Specification and Description Language (SDL) as recommended by ITU (the Z.100 recommendation), as well as the definition of Message Sequence Charts (the Z.120 recommendation). This tutorial assumes that you are already familiar with SDL and have some brief notions about Message Sequence Charts. We will demonstrate, using a simple SDL system as example, the basic functionality that is available in the SDT tool set. You will practice various "hands-on" exercises that will get you more familiar with the SDT tools. In order to learn how to use SDT, read through this entire chapter. As you read, you should perform the steps on your computer system as they are described.

Purpose of this Tutorial

The purpose of this tutorial is to familiarize the reader with the user interface and the essential functionality in the SDT tools. This tutorial is designed as a guided tour through SDT, where a number of hands-on exercises should be performed on your computer as you read this chapter.

We have on purpose selected a simple example that should be easy to understand. It is assumed that you have a basic knowledge about SDL --- this chapter is not a tutorial on SDL.

This chapter addresses the following groups:

Once you have practised on the exercises that are contained in this tutorial, you may want to practise with the next tutorial which is presented in chapter 4, Tutorial: An SDL-92 Example. That tutorial addresses issues that require a deeper knowledge about SDL-92 and its object oriented extensions.

The Demon Game

The example that has been chosen in this tutorial is a simplified version of the "Demon game", which is a well known example in the SDL community, since it is, among other things, used as example in the SDL recommendation.

The SDL definition of the Demon game may be found in SDL-GR form later in this chapter (see "Appendix A: The SDL-GR Definition of the DemonGame" on page 209). The definition of the behavior of the Demon game is probably not the simplest way of describing the game, but it has been selected since it is good for demonstrating the facilities of simulation and validation in SDT.

Behavior of the Demon Game

Seen from the environment, the behavior of the system is as follows. The system accepts four different types of signals, Newgame, Endgame, Probe, and Result, where the first two signals are used to start and end a game. Only one game at a time can be played, that is, Newgame signals will be ignored when a game is in progress and Endgame will be ignored if there is no game in progress.

The game in itself is very simple. A "demon," which in the system is represented by the process Demon, changes the status of the system every now and then between winning and losing. This is represented by the states Winning and Losing in the process Game. The user is to guess when the status is winning. If the user probes (outputs the signal Probe), when the status is winning, he wins one point. If the user probes when the status is losing he loses one point. The system responds to a Probe signal by either a Win or a Lose signal. To see the current score the user can issue a Result signal, which will be answered by a Score signal containing an integer parameter giving the current score.

Starting SDT

Some Preparatory Work

You should create a dedicated directory for the purpose of this tutorial. In the remainder of this chapter, we will assume that this directory is identified by ~/demon_game

Starting SDT

Your first task is to start the SDT environment:

  1. Change directory to the demon_game directory:
cd ~/demon_game
  1. Now, type:
sdt
----------------------------------------------------------------
Note:                                                             
If the command sdt is not found, you first have to set up your    
$path variable correctly. Consult your system manager or the per  
son that is responsible for the SDT environment at your site.     
----------------------------------------------------------------
After a few seconds, SDT responds by displaying the Organizer window. The Organizer is the main tool from which you have access to the tools that constitute the SDT environment.
Figure\x11 11 : The Organizer Window. 
-----
(fig)  
       
-----
The Organizer also displays the SDT Welcome window, where you may read information about SDT. The window is always placed on top of the Organizer window and disappears as soon as you perform any action in the Organizer (you may also click the Close button).
Figure\x11 12 : The SDT Welcome Window.Figure legend: The text that is displayed 
		onyour computer may differ from the one in the picture above. Please spend a few 
		momentsreading it, since it may contain essential information from your system 
		manageror the person that is responsible for the SDT environment at your site. 
-----
(fig)  
       
       
       
       
       
       
-----
You are now ready to start working with SDT.

Preferences

What You Will Learn

What are Preferences For?

Before starting creating your first SDL diagram, you should set up some preference parameters to match your computer environment. These parameters affect the default behavior of the SDT tools and should be adjusted to convenient values in order to have SDT function properly (most options in SDT may be set as preferences). When SDT is installed, the factory settings are used as preference settings. Your system manager may have already prepared the SDT environment; good advice is to check this anyway.

At least the following should be checked:

Displaying and Changing Preferences

To view and possibly change the preference parameters:

  1. From the Organizer's Tools menu, select the Preference Manager command. To select a command: point on the Tools menu, click the left mouse button, locate the Preference Manager menu choice and click on it. After a few seconds, the Preference Manager window is displayed:
    Figure\x11 13 : The Preference Manager Window. 
    -----
    (fig)  
           
    -----
    
Your next task will be to check and, if required, modify a few preferences.

Help Preferences

SDT supports a context-sensitive Help facility that you may use at any moment to request help on a window, on a command, on a dialog etc., without having to leave the SDT environment.

A simple SDT Help Viewer is included in the SDT distribution to make sure you always can use the Help facility. However, you may take advantage of extended functionality and features by using other Help viewers. In this case, the Help facility requires that your computer environment supports either FrameMaker\xaa , FrameViewer, FrameBuilder, NCSA Mosaic or Netscape.(1).

We recommend you if possible to use the FrameMaker version because of its overall better impression. The information that the different viewers provide is however equivalent.

To set up the Help Preferences:

  1. Locate the icon titled Help. You may need to scroll the window downwards to find the icon.

  2. The icon represents a list structure that is collapsed (meaning that it has a substructure which is invisible, indicated with the small triangle below the rectangle). To make the tree visible, you must expand it with a double-click on the icon, i.e. click twice with the left mouse button in rapid succession while pointing on the icon.
  3. Four preference parameters are displayed. Start by locating the preference parameter HelpViewer. The first item to the right of the icon shows the current value. (The next item, within parentheses, denotes the currently saved value).

    If you scroll the window to the right, you will see an explanatory text.

    Figure\x11 14 : The Current and Saved Value, Followed by an 
    Explanatory Text. ----- (fig) -----
  4. To change the option: select the HelpViewer icon. Click the option menu that appears at the bottom of the window and select the appropriate value (you may need to ask your system manager if you do not know what viewer to use). You may also note that the tool shows that the parameter has been changed and needs to be saved for future sessions by filling the icon with a gray pattern.

  5. Depending on your choice of viewer, you should now check that the command SDT uses when starting the Help Viewer is correct, according to your computer environment. Locate and select the icon titled FrameMakerCommand, MosaicCommand, or NetscapeCommand. Here again, the right column shows the current value. If the current command is not correct, change its value.
  6. To change the command: The bottom of the window shows a text field. Place the cursor into the text field and change the contents to the value of your choice (if required, ask your system manager).

  7. You may now collapse the Help node, i.e. the reverse operation to expand. To do this, double-click the icon.
You have now learned how to work with graphical lists in SDT. Graphical lists are used extensively throughout the tools; They may hold as many levels as required (the Preference Manager uses three levels of indentation, as seen on the screen).

Some tools also support a vertical tree as an alternative to a graphical list. The functionality is identical, only the presentation differs. You will acquaintance yourself with a graphical tree later in this tutorial.

Setting the Default Printer

In this tutorial, you will learn how to print diagrams. Before you start printing from SDT, you should check and, if needed, set up your print preferences in accordance to your computer environment.

To set up the Print preferences:

  1. Locate the Print icon. Expand it.
  2. Locate the PrinterCommand parameter. Adjust it to an adequate value (if required, ask your system manager). You may specify any suitable operating system command, for instance sending the resulting PostScript printouts to a printer queue or previewing the PostScript file in a pre-viewer such as Ghostview(2).
  3. Locate the PaperFormat parameter. SDT supports a number of predefined paper sizes on the option menu (A4, A3, US Letter and US Legal). You may also specify an arbitrary UserDefined value, in which case you need to specify the parameters UserDefinedWidth and UserDefinedHeight; these values are expressed in millimeters.
  4. Adjust, if required, the parameters MarginUpper, MarginLower, MarginLeft and MarginRight. These parameters govern how much space will be reserved for the margins on the printed pages; you may use this space for including headers and footers in your printouts.
  5. Adjust, if required, the parameter Landscape to on or off (this parameter specifies the orientation, landscape or portrait).

Setting the Drawing Area Size

When editing SDL diagrams, SDT creates pages that are assigned a predefined size. You should specify the default size to match the size of the printer pages that you defined in the previous exercise.

  1. Locate the SDL Editor icon, expand it and inspect the parameters PageWidth and PageHeight.
  2. If required, adjust these parameters to suitable values.

Setting the Platform Mode

When running SDT, you may enable support for mixed platforms, meaning that a system can be used on both UNIX and PC platforms. You should make sure this support is turned off during this tutorial.

  1. Locate the SDT icon, expand it and inspect the parameter MixedPlatform.
  2. If required, turn the parameter off by selecting it and clicking the radio buttons that appear at the bottom of the window.

    ---------------------------------------------------------------
    Note:                                                            
    If you change this parameter, you must exit and restart SDT di   
    rectly after having saved the Preferences (which is described    
    next). To exit SDT, select Exit from the Organizer's File menu.  
    ---------------------------------------------------------------
    

Saving the Preferences

You should now save your preference settings for future SDT sessions. To do this, select the Save command from the File menu.

Your preferences are now saved on file for the current (and for future) SDT sessions. Close the Preferences window by selecting the Exit command from the File menu.

This concludes your Preference session. You may of course at any moment go back to the Preference Manager and adjust other parameters.

Creating an SDL Structure

You are now ready to create your first SDL diagrams with SDT 3.02.

What You Will Learn

Creating a System Diagram

Adding a Root Node

You should now go back to the Organizer. You will create an SDL system, working in a top-down fashion:

  1. Select the New command from the File menu. A dialog is issued, the New System dialog, prompting you to specify the name and type of system to create.
    Figure\x11 15 : Creating a New System. 
    -----
    (fig)  
           
    -----
    
  2. Specify the root diagram type as System.
  3. Specify the name of the root diagram name as DemonGame (the default name, Untitled disappears).
  4. Click the New button.
The dialog disappears and the Organizer window is updated to show an area titled Diagram Structure, containing, so far, the root node --- system DemonGame.

Figure\x11 16 : The Root Node. 
-----
(fig)  
       
-----
Beneath the Diagram Structure, you may find another area titled Associated Documents, so far empty. This area will be used for other documents than those building up the Diagram Structure for the current system, DemonGame. You will have the opportunity to practice on the Associate Documents Area later in this tutorial.

Creating the System Diagram

You have so far created an Organizer Diagram Structure, consisting of one reference to an SDL system diagram (the referred diagram does however not yet exist).

Your next task is to create the diagram:

  1. Make sure the SDL system diagram icon is selected (this is indicated by the dark selection squares surrounding the icon, as in Figure 16).
  2. From the Edit menu, select the menu choice Edit Diagram.
  3. A dialog is issued, informing you that the diagram is unconnected (meaning that there is no physical connection to a file; this makes sense since the diagram does not exist).
    Figure\x11 17 : Prompting to Connect a Diagram to a File. 
    -----
    (fig)  
           
    -----
    
  4. Since you are to create a new diagram, make sure the New radio button is turned on and click the Edit button.
  5. A new dialog appears, prompting you to specify an SDL page to add to your diagram (SDT requires SDL diagrams to contain at least one page; you may add as many pages as required)
    Figure\x11 18 : Prompting to Add a Page 
    -----
    (fig)  
           
    -----
    
  6. Type in a suitable page name (we assume that you enter the name 1, as in Figure 18) and click the OK button.
After a few seconds, SDT responds by displaying the SDL Editor window, showing the upper left corner of page 1 of the system diagram DemonGame.

Figure\x11 19 : The SDL Editor Window. 
-----
(fig)  
       
-----
The SDL Editor is the tool you use when editing the contents of the diagrams. The SDL Editor is also used for building the diagram structure that is displayed in the Organizer window.

Editing the System Diagram

Your next task is to fill in the contents of the diagram. Figure 20 shows the appearance of the diagram when completed and printed on paper. As you can see, the diagram consists of two block reference symbols (GameBlock and DemonBlock), a channel conveying the signals between the blocks (C3) and two channels conveying the signals to and from the environment (C1 and C2). There is also a text symbol where the signal declarations may be found.

Figure\x11 20 : The System Diagram. 
-----
(fig)  
       
-----
The next pages describe in detail how you proceed to add the symbols and texts to the diagram.

Customizing the SDL Editor Window

Before you start editing, you may want to resize the editor window. You may also hide and show various sub-windows using the command Window Options from the View menu.

Figure\x11 21 : The Window Options. 
-----
(fig)  
       
-----

Placing Block Reference Symbols

  1. Start editing the diagram by inserting the block reference symbols.
    ------------------------------------------------------------------
    Note:  Undoing last operation                                       
    If you happen to perform a command or operation that you wish not   
    had taken place, you should immediately select the Undo command     
    from the Edit menu.                                                 
    ------------------------------------------------------------------
    
    To place a block reference symbol:
  2. Once you have placed the symbol, type the name of the block: DemonBlock

Moving and Resizing Symbols

To move a block:

After you place the blocks where you want them, you may resize them as follows:

  1. Point to one of the symbol's corners, and drag. You must be fairly close to the corner. If this method fails, first select the symbol with a click and then repeat the procedure while pointing to a selection square.
  2. When you are satisfied with the new size, release the button.

Drawing Channels Between Blocks

To draw a channel from block DemonBlock to Block GameBlock:

  1. Select the DemonBlock symbol. A "handle" appears.
    Figure\x11 22 : A "Handle". 
    -----
    (fig)  
           
    -----
    
  2. Drag the handle (i.e. press the mouse button while pointing on the handle, and start moving the mouse while keeping the mouse button pressed).
  3. As soon as mouse motion has begun the editor responds by drawing a line; from now on you may release the button while moving the mouse.
  4. Move the mouse until it points to the GameBlock symbol. Release the mouse button; the channel is connected at both ends.
The SDL Editor creates two text attributes associated to the channel. These text fields are displayed as selection rectangles which you use when entering the name of the channel and the list of the signals the channel is to convey.

Figure\x11 23 : The Channel's Text Attributes. 
-----
(fig)  
       
-----
To fill in the name of the channel C3:

To fill in the signal Bump into the signal list text field:

  1. Click on the text field surrounded with two brackets `[ ]'.
  2. Type in the name of the signal. Note that the brackets are adjusted automatically to fit the size of the text.
  3. You may move the text attributes to new locations, if desired. Simply drag them with the mouse.

Drawing Channels to the Environment

To draw a channel from a block to the environment (e.g. C2):

  1. Select the block.
  2. Start by dragging the handle, and terminate by clicking on the frame symbol (the rectangle that encloses the diagram, see Figure 26 on page 66).
  3. Fill in the name and signals. You may note that an additional text object is created close to the frame symbol; this text object is a graphical connection point that you would use if the diagram was, for instance, a block diagram. But, on system diagrams, simply leave its contents empty.
    Figure\x11 24 : The Connection Point. 
    -----
    (fig)  
           
    -----
    

Drawing a Channel from the Environment

To draw a channel from the environment to a block (e.g. C1):

  1. Start by drawing the channel from the block to the environment, as you just learned.
  2. Make sure the channel is selected.
  3. Then, select the command Redirect from the Edit menu. Fill in the name and signals the usual way.

Drawing a Text Symbol

The diagram also contains a text symbol with the required signal declarations.

  1. Pick the text symbol in the symbol menu, insert it into the drawing area and fill in the contents as shown in Figure 20.
  2. When the contents of the text symbol are changed, the editor automatically resizes the text symbol to fit the text. You may resize it by dragging the lower right corner, or toggle between its minimized and maximized sizes by double-clicking the symbol. Try this.

Resizing the Text Window

If the text window is too small to bring all the text in view, you may resize it by dragging the sash up or down; the sash is the small square situated to the right and above the text window menu bar; the text window is a pane of the SDL Editor window.

Figure\x11 25 : The SDL Editor's Sash. 
-----
(fig)  
       
-----

Other Symbols in the System Diagram

Figure\x11 26 : Other Symbols. 
-----
(fig)  
       
-----

Package Reference Symbol

The package reference symbol is used to refer to included SDL packages; this simple example does not however include any packages. Just leave the symbol empty.

The Kernel Heading Symbol

The kernel heading symbol is automatically assigned its contents by the tool to reflect the type and the name of the diagram being edited. This symbol is editable; this topic is however beyond the scope of this small example, so you should not alter its contents.

Additional Heading Symbol

The additional heading symbol is not defined further according to Z.100. In SDT, it looks like a dashed text symbol. The symbol is editable and may be resized the same way as you learned for resizing text symbols, but it cannot be moved. Its intended use in SDT is, among others, to define inheritance and specialization and to specify formal parameters. You will not use this symbol in this tutorial.

Frame Symbol

The frame symbol is added automatically by the editor. It surrounds the objects that are contained in your diagram. You may want to resize the frame symbol to create a more compact diagram; simply drag any corner to do this.

-----------------------------------------------------
Note:                                                  
The frame symbol is not the same as the paper border!  
-----------------------------------------------------

Page Numbering Symbol

The page numbering symbol is updated automatically by the editor to reflect the name of the page and the total number of pages. It is not editable.

Saving the Newly Created System Diagram

In this exercise, you will practise on the commands that store SDL diagrams on files.

  1. You should now have two SDT windows on the screen, the Organizer window and the SDL Editor window.
  2. Before you save anything, open the Organizer's View Options dialog from the View menu.
  3. Turn the Diagram File Names toggle button on and click the Apply button. This makes the file names visible in the Organizer.
    Figure\x11 27 : The Organizer's View Options. 
    -----
    (fig)  
           
    -----
    
  4. Look at the resulting Organizer view. The icon is drawn with a gray pattern, which shows that the diagram is modified and not saved. The text to the right of the icon reads [unconnected] which is a convention adopted in SDT to show that a diagram has no current binding to a file.
    Figure\x11 28 : A Modified, Unconnected Diagram.Figure legend: The diagram 
    		substructureis also visible on the screen. The picture shows only one diagram symbol for 
    		thesake of simplicity. 
    -----
    (fig)  
           
           
           
    -----
    
  5. Now, save the SDL diagram by selecting the Save menu choice from the from the SDL Editor's File menu.
  6. A file selection dialog is displayed. This is a generic dialog that SDT issues whenever you are prompted to specify a file (to open, to save etc.). The title of the dialog shows the nature of the operation, SDT Save in this case.
    Figure\x11 29 : A File Selection Dialog. 
    -----
    (fig)  
           
    -----
    
There are two other diagram icons, which are [unconnected] These represent the references to the block diagrams that you added when editing the system diagram.

Saving the Diagram Structure

You have, so far, saved the system diagram. You should also save the Organizer's view options and diagram structure for future sessions. If you look at the window title, you notice an ending asterisk. This asterisk denotes that the Organizer's view or structure information has been modified and needs to be saved.

Figure\x11 32 : The Organizer Window Title. 
-----
(fig)  
       
-----

The System File

The Organizer saves its view, along with a number of options, on a dedicated file called the system file(3). System files are used as a means to maintain the consistency of an SDL structure and provide immediate access to the diagrams that are defined in the structure.

To facilitate reusing the system file for future SDT sessions, we suggest that you specify the Organizer's Source Directory before saving the system file (basically, the directory where SDT will look for existing diagrams, and save newly created diagrams).

To specify the Source Directory:

  1. From the File menu, select the menu choice Set Directories.
  2. The Set Directories dialog is issued. Type in the name of your working directory as Source Directory or, alternatively, click on the folder button to display a Directory Selection dialog where you specify the directory of your choice (see Figure 33).
    Figure\x11 33 : Specifying the Source Directory. 
    -----
    (fig)  
           
    -----
    
To save the system file:

  1. Select the Save command from the File menu. The Organizer responds by issuing the Save dialog.
    Figure\x11 34 : The Organizer's Save Dialog. 
    -----
    (fig)  
           
    -----
    
  2. The tool suggests a file name to store the information on: demongame.sdt (system files are by default assigned the extension .sdt). Accept the suggestion by clicking the Save button.
Once a system file has been created, the diagram structure and the Organizer options are saved for future sessions. You may Open an existing system file from the Organizer's File menu.

More About Saving

For the purpose of this tutorial, you have learned how to save individual diagrams and how to save the system file. There are however other handy ways to save everything with one single command. Two of these methods are listed below.

Printing the System Diagram

What You Will Learn

How to Print

You have now drawn your first SDL diagram. It may be convenient to print the diagram before proceeding with the remaining exercises. We assume that your computer environment includes a PostScript printer. If not, you may skip this exercise.

To print the diagram:

  1. Raise the SDL Editor window.
  2. Select the Print command from the File menu.
  3. The Print dialog is issued.
    Figure\x11 35 : The Print Dialog. 
    -----
    (fig)  
           
    -----
    
  4. If you have set up your preferences adequately, the dialog should be preset with the correct options. If not, you need to check and possibly modify at least the:

Checking the System Diagram

What You Will Learn

Running the Analyzer

You should now check the syntax of the system diagram you created before proceeding further by creating the remaining diagrams. To do this, you will use the Analyzer tool, a back-end tool which is fully integrated with the Organizer.

  1. Select the SDL system diagram icon in the Organizer Diagram Structure. Then, from the Organizer's Generate menu, select the Analyze command.
  2. If you had (perhaps accidentally) modified any diagram, the Organizer first prompts you to save modified diagrams (by issuing the Save dialog, see Figure 34 on page 72) --- in which case you should click the Save All button to make sure everything is OK.
  3. Once the Save before Analyze dialog is closed, the Organizer issues the Analyzer options dialog.
    Figure\x11 37 : The Analyzer Options Dialog. 
    -----
    (fig)  
           
    -----
    
  4. Adjust the options in accordance to Figure 37, i.e.
  5. Click the Analyze button. First, SDT asks you to confirm the analysis of a system that contains diagrams not connected to files:
    Figure\x11 38 : Confirming to Analyze a System with Unconnected Diagrams. 
    -----
    (fig)  
           
           
    -----
    
  6. The Analyzer now starts processing the input with the options as specified in the options dialog. After a few seconds, the Organizer status bar should read something with the essence "Analyzer ready", possibly appended with extra information.
  7. Raise the Organizer Log window, if required, and look at the results. (Use the Organizer Log command from the Organizer's Tools menu to show the window).

Looking for Analysis Errors

The diagnostics that are reported by the Analyzer are appended to the Organizer Log (together with other important messages). Look at the tail of the log for the report summary, which should look something like:

--------------------------------------------------
Number of errors: <diagram dependent>
+ Analysis completed
(You may need to scroll down the Organizer Log window to bring the tail into view.)

The number of errors shows how many syntactic errors that were detected in the diagram (if no errors were found, then this line is missing in its whole). For the purpose of this exercise, you may need to introduce a syntactic error into the diagram. You may for instance remove one of the separating commas in a signal list. Save everything and repeat this exercise.

Correcting Analysis Errors

Your Organizer log should now report an error looking something like:

#SDTREF(SDL,/home/tord/demon_game/demongame.ssy(1),1
31(25,50),3,8)
ERROR 312 Syntax error in rule SIGNALLIST, symbol Name 
found but one of the following expected:
,  ;  comment  
Result Endgame;
      ?

How to Interpret the Error Message

Let us spend a few moments on explaining the contents of this error.

To display the diagram and symbol where the error was found, you may use a handy facility:

  1. Select, by dragging the mouse, the lines of text containing the error message.
    Figure\x11 39 : Selecting the Error Message. 
    -----
    (fig)  
           
    -----
    
  2. Select the command Show Error form the Organizer Log window's Tools menu.
  3. The symbol where the error was found is immediately selected in the SDL Editor. The more information the reference holds, the more precise the selection. Correct the error.
  4. Correct possible remaining errors in a similar fashion.
  5. Repeat the analysis until the Analyzer does not report any errors longer. If you feel uncertain about how to interpret and correct the errors, look at the printout for the system diagram for a reference (see Figure 20 on page 61).
You have now designed your first SDL diagram with SDT 3.02. SDT has also verified that the diagram is syntactically correct according to the Z.100 recommendation. Congratulations!

Creating a New Block Diagram

What You Will Learn

Creating a Block Diagram from the Organizer

In this exercise, you will create a block diagram, starting from the Organizer.

  1. Locate the Organizer window and double-click the icon named GameBlock. In a similar fashion as when creating the system diagram, you will get the Edit Diagram dialog (see Figure 17 on page 59). Make sure the New option is on and click the Edit button. Next, the Add Page dialog is issued.
    Figure\x11 40 : Prompting to Add a Page. 
    -----
    (fig)  
           
    -----
    
  2. This appearance dialog is slightly different from when adding a page to a system diagram. Specify the page name (1, for instance) and make sure the Process Interaction page button is on. Click OK.
  3. The SDL Editor opens a window on page 1 of the newly created block diagram. The block diagram editor window is similar to the system diagram window; only the symbol menu differ.
Figure 41 shows the appearance of the finished block GameBlock when printed. As you may see, the diagram contains two process reference symbols, five signal routes, three connection points and a text symbol with a signal declaration.

Figure\x11 41 : The Block GameBlock. 
-----
(fig)  
       
-----
You should now draw the block diagram as depicted in Figure 41. You add the symbols and lines in a similar fashion as when editing the system diagram. Please spend a few minutes on reading the next pages before starting drawing the diagram, in order to familiarize yourself with the new concepts that are introduced and how you manage them.

Process Name and Number of Instances

When you add a process reference symbol, you should specify the number of instances by appending the text directly after the name of the process reference symbol. The number of instances is the text between parentheses `( )'.

Signal Routes

Signal routes are drawn in a similar way as channels. When you select a process reference symbol, two "handles" are displayed.

Figure\x11 42 : The Two Handles of a Process Reference Symbol. 
-----
(fig)  
       
-----

Connection Points

When you draw a signal route to / from the frame symbol, you should not only fill in the name and signal list, but also take advantage of the graphical connection points to establish connections between the signal routes and the parent system diagram, i.e. connecting the signal routes to the channels.

Figure\x11 43 : Graphical Connection PointFigure legend: The figure depicts a 
		signalroute (R1) in the block diagram and the referencing system diagram with the 
		connectedchannel (C1). 
----------
(fig)(fig)  
            
            
            
            
----------
To edit a connection point:

Editing the Block Diagram

Now, draw the diagram as described in the following steps:

  1. Start by adding the process symbol Main(1,1) and draw a signal route from the environment to the process. Enter the name of the signal route: R1.

Requesting Signal Dictionary Support

  1. Select the signal list text field. You are now to specify the name of the signals to be conveyed on the signal route R1. SDT has the ability to assist you in reusing the signals that are already defined in the SDL structure (i.e. defined in the system diagram, since you are working in a top-down fashion!). To request signal dictionary support:
  2. Select the command Signal Dictionary from the Windows menu. After a while, the Signal Dictionary window is displayed.
    Figure\x11 44 : The Signal Dictionary Window.Figure legend: The exact appearance 
    		ofthe window depends on the graphical capabilities available on your terminal. 
    		Theremay or may not be additional SDL-like symbols located at the extreme left of 
    		thewindow. 
    -----
    (fig)  
           
           
           
           
           
    -----
    
    ----------------------------------------------------------------------
    Note:                                                                   
    To function properly, the Signal Dictionary utility requires that the   
    input SDL diagrams (in this case system DemonGame) are syntac           
    tically correct. If not, you need to go back to the previous exercise   
    (see "Correcting Analysis Errors" on page 79) and run the Analyzer      
    in order to correct any errors.                                         
    ----------------------------------------------------------------------
    
  3. Look at the left list in the Signal Dictionary window. The first section starts with the separator Up. This section includes the signals that are available by looking one level up in the diagram structure (i.e. in the parent diagram, system DemonGame).
    Figure\x11 45 : The Up Separator. 
    -----
    (fig)  
           
    -----
    
  4. In this section, the first item identifies the system DemonGame, as expected.
    Figure\x11 46 : The Item Symbolizing the System DemonGame. 
    -----
    (fig)  
           
    -----
    
  5. Since you are editing a signal route from the system diagram to the block diagram, you should look for all icons symbolizing channels from the parent diagram.
    Figure\x11 47 : The Icon Symbolizing a Channel from the Parent Diagram to the 
    		CurrentDiagram. 
    -----
    (fig)  
           
           
    -----
    
  6. Beneath the channel all the signals that it conveys are listed. Click on the signal named Newgame.
    Figure\x11 48 : Selecting a Signal. 
    -----
    (fig)  
           
    -----
    
  7. From the Edit menu, select the command Insert. The signal list in the SDL Editor is immediately updated.
  8. Insert the required comma and a newline.
  9. Double-click the signal Endgame.
  10. The Signal Dictionary also gives a suggestion about how to fill in the connection point: C1.
  11. Add the process reference symbol: Game(0,1).
  12. Draw a signal route from Game to the frame symbol.
  13. When you are to enter the signal list for R4, you do not need to enter the signals one by one as for R1, since the channel C2 is not split up into multiple signal routes, as for C1 that becomes R1 and R2 (see your printout or Figure 20 on page 61). Instead, you may insert all signals with one single operation:
You are now somewhat familiar with the Signal Dictionary utility. Fill in the remaining parts of the diagram using your preferred method. When done, you may close the Signal Dictionary window (use the Close command from the File menu).

You may at any time open a Signal Dictionary window when editing a diagram. Feel free to use it as much as feels meaningful.

Saving the Diagram

Once you are finished with the block GameBlock, save everything, for instance by clicking on the Organizer's Save quick button.

Working with Multiple Diagrams

You have now created two SDL diagrams. Both diagrams are currently opened by the SDL Editor; however only the diagram currently being edited is visible in a window.

The SDL Editor provides a menu named Diagrams where all diagrams and pages currently opened by the editor are listed.

  1. Click on the Diagrams menu. It should now contain two menu choices:
    Figure\x11 50 : The Diagrams Menu. 
    -----
    (fig)  
           
    -----
    
    Each of these menu choices correspond to a diagram and page currently opened by the SDL Editor. The file the diagram is stored on is also displayed to the right of the diagram name.
    Now, bring the diagram for the system DemonGame into view:
  2. Locate the menu choice name
    System DemonGame/1/.../demongame.ssy(4)
  3. Select this menu choice. The system diagram is instantly displayed. (The block diagram is now hidden.)

Working with Multiple Windows

So far, you have only worked with one single window on a page. The SDL Editor allows you to open new windows on the same diagram, which makes it possible to work on multiple views on a page. This is also called instantiating a window.

To open a new window on a page:

  1. Make sure the page whose window is to be instantiated is the page currently in view in the SDL Editor. If not, use the Diagrams menu.
  2. From the Window menu, select the command New Window. A new window showing the current page is instantly displayed.
    Figure\x11 51 : Two Windows on the Same Page. 
    -----
    (fig)  
           
    -----
    
  3. You may now use any window to work on the page. Any change causes both windows to be simultaneously updated. Try this, for instance by moving a symbol!
  4. You probably need one window only for this tutorial, since the diagrams you are working on in this tutorial are small, on purpose. Close any of the two windows with the Close Window command from the Windows menu.

Resulting Organizer View

Save everything. The resulting Organizer View should now look like:

Figure\x11 52 : The Resulting Organizer View. 
-----
(fig)  
       
-----

Checking the Syntax of the Block Diagram

You may now want to use SDT's Analyzer to check the syntax of the block diagram you just created.

To analyze the block GameBlock, do as follows:

  1. Select the icon for the block GameBlock to specify the block as input to the Analyzer.
  2. Select the command Analyze.
  3. Proceed as for the system diagram, i.e.
With a syntactically correct block GameBlock, the Analyzer should report three warnings about unconnected diagrams. Again, do not bother about these errors.

Creating a Block Diagram From a Copy

What You Will Learn

Creating the Block DemonBlock

You created the block GameBlock from the Organizer, with the double-click facility. You may also use the function from within the SDL Editor, by double-clicking on diagram reference symbols.

To create the block DemonBlock:

  1. If the system diagram not currently visible, open the system diagram (DemonGame) in an SDL Editor window (use the Diagrams menu for this).
  2. Locate the block reference symbol DemonBlock. Double-click on the reference symbol. A dialog is issued, the same as when double-clicking on an Organizer icon.
    Figure\x11 53 : Prompting to Create the Block DemonBlock.Figure legend: See step 
    		3 and 4 on page 92 for how to use the dialog. 
    -----
    (fig)  
           
           
    -----
    
    You will now create the diagram by using a copy of an existing file. The SDT installation contains a number of SDL examples, among which the diagrams that build up the DemonGame example may be found. These diagrams are by default stored in a subdirectory to the SDT installation directory. The name of the directory should be $sdtrelease/examples/demongame
    Your next task is to specify the location of the file that contains the block DemonBlock. This file is named demonblock.sbk
    --------------------------------------------------------------------------
    Note:                                                                       
    You may need to contact your system manager to find out the exact           
    location of this directory. If you fail in finding the directory with the   
    DemonGame example, do not give up! You may always create the                
    remaining diagrams with the New option, and design them with the            
    SDL Editor in a hand-drawn fashion, as you learned in the previous          
    exercises.                                                                  
    --------------------------------------------------------------------------
    
  3. Make sure the Copy existing file button is turned on.
  4. Then, either:
  5. Close the Edit Diagram dialog by clicking on the Edit button. After a few seconds, the SDL Editor shows the diagram in a window. The diagram when printed should look like Figure 55.
    Figure\x11 55 : The Block DemonBlock. 
    -----
    (fig)  
           
    -----
    
  6. Now, save the diagram from the SDL Editor (use the Save quick button). A file selection dialog is displayed, with the suggested file name demonblock.sbk.
    Figure\x11 56 : Suggesting a File Name for the Block DemonBlock. 
    -----
    (fig)  
           
    -----
    
  7. Accept the suggestion by clicking the OK button. Next picture shows the resulting Organizer's Diagram Structure.
    Figure\x11 57 : The Resulting Organizer List. 
    -----
    (fig)  
           
    -----
    

Creating a Process Diagram

You have now created the structural elements of your SDL system. This structure needs now to be completed with the implementation, i.e. the process flow charts that describe the behavior of the system.

In the previous exercises, you have learned how to create new diagrams, either from the Organizer or from the SDL Editor, so we will not focus on these details any more. Feel free to double-click icons in the Organizer or in the SDL Editor, or to use the Organizer Edit Diagram command, depending on your preference.

In the next exercise, you will instead learn how to use the SDL Editor for drawing process diagrams. Let us start with the process Demon, which is depicted in Figure 58.

Editing the Process Demon

Figure\x11 58 : The Process Demon. 
-----
(fig)  
       
-----
On the next pages, you will find suggestions about how to use the SDL Editor to draw the diagram.

What You Will Learn

Creating the Diagram

  1. When creating the diagram (using for instance the double-click facility on the Demon symbol), make sure that the New button is on. When SDT prompts you to add a page, make sure that you specify a page with the type set to Graph Page.
    Figure\x11 59 : Specifying Page Type to Graph Page. 
    -----
    (fig)  
           
    -----
    
  2. When the SDL Editor responds by displaying the (empty) diagram, you notice that the appearance of the symbol menu is different; it now contains the symbols that are allowed on a flow diagram (such as a process diagram).
    Figure\x11 60 : The SDL Editor Window on Flow Diagrams. 
    -----
    (fig)  
           
    -----
    
The diagram consists of two of branches of symbols. When you append symbols to a branch, the editor may automatically interconnect the symbols with flow lines.

You may select to enter the text into each symbol once the symbol has been inserted, or insert all symbols and then edit the text, or a mix of both methods. Now, edit the diagram according to the instructions below.

Creating the Left Branch

To create the left branch:

  1. Select the start symbol in the symbol menu and place it in the drawing area at a suitable location.

  2. When you are to edit the task symbol containing the statement that sets the timer, let us assume, for the purpose of this exercise, that you do not have the grammar for the set statement in mind.
    The SDL Editor provides a context-sensitive facility, the Grammar Help window, that assists you in entering correct SDL expressions. You will now use it in order to fill in a correct set expression. Select the command Grammar Help from the Windows menu. The SDL Editor responds by displaying the Grammar Help window.
    Figure\x11 61 : The Grammar Help Window. 
    -----
    (fig)  
           
    -----
    
  3. The use case you are to use is the set of a timer, so locate the item titled Set. Click on it with the mouse.
  4. Insert the formal text into the task symbol by selecting the Insert command from the Edit menu. The task symbol is immediately updated.
  5. Now, change the generic names Expr and TimerName to their actual values (1 and T, respectively).
  6. Double-click a state symbol and enter the text: Generate

Creating the Right Branch

To create the right branch:

  1. Copy the newly added state symbol to the clipboard. You find the clipboard commands, e.g. Copy, on the Edit menu or on the pop up menu that is activated with the right mouse button.
  2. Paste the state symbol (use the Paste command on the pop up menu). Following Paste, you should specify the location of the new symbol; move the mouse until you point to a suitable location and terminate with a click with the left mouse button.
  3. Append an input symbol with a double-click. Enter the text: T
  4. Append the output symbol Bump with a double-click and enter the text.
  5. Copy the task symbol with the text SET (NOW + 1, T) to the clipboard. But, do not paste right now.
  6. Point to the output symbol Bump. Press the right mouse button and select the Insert Paste command. This pastes and connects the task symbol.
  7. Terminate the branch by double-clicking a state symbol and typing a hyphen (-).
  8. Finally, add a text symbol and type in the declaration of the timer T.
  9. If desired, resize the frame symbol.
  10. Save the diagram. This concludes the editing of the process Demon.

Editing the Process Game

First, create the process diagram Game the usual way. In this exercise, you will learn some other editing functions:

What You Will Learn

This is how you may proceed to edit the process diagram illustrated in Figure 64:

Editing the Start Transition

  1. Insert the start symbol, the following task symbol and the state symbol Losing.
  2. You will now insert two input symbols in parallel. To do this, first make sure the state symbol is selected. Then, press the <SHIFT> key and double-click two input symbols (the <SHIFT> key must be kept pressed while doing this).
  3. Release the <SHIFT> key, and select the left input symbol.
  4. Fill in the name of the input symbol, Probe, and complete the left branch.
  5. Select the right input symbol, fill in the name (Bump) and complete the branch without bothering about the subbranch, starting with the input of the signal Probe in the state Winning.
  6. Select the Probe input symbol in the left branch. On the Edit menu, use the Select Tail command to extend the selection to the end of the branch.
  7. Copy the selection and Paste it. Move the selection (which appears as a set of symbols) to a suitable place and paste it with a click with the left mouse button. If Paste fails (because of insufficient space or overlap), an alert sound is issued --- try again.
  8. Change the text in the input symbol from Lose to Win.
  9. To interconnect the state symbol Winning with the input symbol Probe: select the state symbol --- a handle appears ---
    Figure\x11 65 : The Selected State and its Handle. 
    -----
    (fig)  
           
    -----
    
    drag the handle while pressing the mouse and release the mouse when it points to the input Probe symbol. A line is drawn between the symbols.
    Figure\x11 66 : The Two Branches are Connected. 
    -----
    (fig)  
           
    -----
    
  10. Conclude the diagram by drawing the remaining parts and saving the diagram.
    Figure\x11 67 : Remaining Parts to Edit. 
    -----
    (fig)  
           
    -----
    

Editing the Process Main

The process Main is the last diagram to create and edit. If you find this tedious, you may skip this exercise and create the diagram as a copy from the files that are enclosed in the SDT distribution (how to do this is described in section "Creating a Block Diagram From a Copy" on page 91). Figure 68 shows the appearance of the diagram to create.

Figure\x11 68 : The Process Main. 
-----
(fig)  
       
-----

More About the Organizer

When you are ready with the diagram, Save everything. The diagram structure in the Organizer Window should now look like this:

Figure\x11 69 : The Resulting Diagram Structure. 
-----
(fig)  
       
-----
In this tutorial, you have only browsed through a minor part of the available functionality. You may for instance customize the Organizer to display the information using different view options.

What You Will Learn

Tree View

Bring up the View Options dialog (see Figure 27 on page 68), click on the Vertical Tree radio button and click on Apply. The Organizer window changes its presentation mode:

Figure\x11 70 : A Vertical Tree Structure. 
-----
(fig)  
       
-----

Expand / Collapse

You may make parts of the diagram structure invisible (and visible again) with the Expand and Collapse commands from the View menu. (Expand is available on collapsed nodes only (indicated by the small triangle), while Collapse is available on expanded nodes that have a substructure).

Directory Names and Pages

Apply the Indented List mode again.

Turn the Diagram Directories and Pages toggle buttons on. Apply the options, the result becomes a list where the file names are shown with the directories, and where SDL pages are made visible.

Figure\x11 71 : Directories and Pages are Displayed. 
-----
(fig)  
       
-----

Printing the System

The Organizer lets you print all diagrams that are included in the system with a single command. You may also include a table of contents:

  1. Click the quick button for Print. This issues the Organizer's Print dialog.

  2. Turn the Table of contents toggle button on and click on Print to order a global printout of all SDL diagrams, including a table of contents.
    Figure\x11 72 : Including a Table of Contents. 
    -----
    (fig)  
           
    -----
    
You have now created and printed your first complete SDL system with SDT 3.02. Your next task is to check the complete system with respect to SDL syntax and semantics.

Analyzing the Complete System

What You Will Learn

Enabling Semantic Analysis

To analyze the system, you should also enable the semantic checker. To do this:

  1. Select the system diagram icon.
  2. Use the Analyze command from the Generate menu.
  3. Adjust the analyzer options according to Figure 73:
    Figure\x11 73 : Including Semantic Analysis. 
    -----
    (fig)  
           
    -----
    
  4. Click the Analyze button.
  5. When the Organizer status bar reads "Analyzer ready", look at the Organizer Log for any errors reported by the Analyzer.
  6. If required, correct the errors and repeat the procedure. How to locate errors in the source SDL diagrams was described in a previous exercise, see "Looking for Analysis Errors" and "Correcting Analysis Errors" on page 79.
  7. The tail of the Organizer log should contain the following output when the system is syntactically and semantically correct:
+ Analysis started
GR to PR conversion started
GR to PR conversion completed
Syntactic analysis started
Syntactic analysis completed
Semantic analysis started
Semantic analysis completed
+ Analysis completed
Terminate this exercise by saving everything. You may also want to print the diagrams again (see "Printing the System" on page 107 for how to do this).

Managing Message Sequence Charts

Besides its functionality as an SDL tool, SDT also support the Z.120 recommendation, also known as Message Sequence Charts (MSC).

In this tutorial we will demonstrate some application areas of MSCs.

What You Will Learn

Inserting an MSC into the Organizer

To create an MSC, you use the Organizer, where the MSC will be managed as an Associated Document. In this exercise, we will create an MSC where you will describe the dynamic behavior of the system DemonGame. You will also use this MSC as a reference when simulating and validating the system (this is done in later exercises).

To create an MSC:

  1. From the Edit menu, select the command Add Diagram. A dialog is issued, prompting you to specify a diagram name and type.
    Figure\x11 74 : Specifying the Name and Type of the Diagram to Add. 
    -----
    (fig)  
           
    -----
    
    Adjust the dialog options as in Figure 74:
  2. Click the Add button. An MSC icon appears in the Organizer's Associated Documents Area; the lower part of your Organizer Window should now like Figure 75.
    Figure\x11 75 : The Organizer Structure with an MSC Added. 
    -----
    (fig)  
           
    -----
    
  3. The MSC you have inserted into the Organizer is intended to describe the behavior of the system; it is associated with the system diagram. SDT allows you to make this association visible in the Organizer. Make sure the MSC icon is selected and order the Associate Document command from the Edit menu. A dialog is displayed.
    Figure\x11 76 : Associating an MSC with an SDL diagram. 
    -----
    (fig)  
           
    -----
    
  4. Check the Organizer's View Options (the command is available on the View menu). If required, turn the options Associated Documents and Associated Document Links on and click Apply.
  5. Look at the resulting Organizer structure. In addition to the MSC icon in the Associated Documents Area, an MSC Link Icon appears, connected to the system diagram icon. If you select it, the Organizer's status bar informs you about the link to the actual MSC.
    Figure\x11 77 : Association Between the System Diagram and the Associated MSC 
    -----
    (fig)  
           
           
    -----
    

Creating an MSC

MSCs are created in a similar way as you created SDL diagrams (remember how you double-clicked an SDL diagram icon, created a new diagram, specified the diagram type and name and let the tool connect the newly created diagram to a file).

  1. When you have associated an MSC to an SDL diagram, you may choose to double-click either the MSC icon or the (dashed) MSC link icon. Do this now; a dialog is issued.
  2. See Figure 78 for how to specify the dialog options.
    Figure\x11 78 : Specifying a New MSC. 
    -----
    (fig)  
           
    -----
    
  3. Close the dialog by clicking the Edit button. After a few seconds, the MSC Editor window is displayed. It looks similar to the SDL Editor window, but provides of course a different symbol menu and different set of commands and quick buttons.
    Figure\x11 79 : The MSC Editor Window. 
    -----
    (fig)  
           
    -----
    

Editing an MSC

Your next task is to use the MSC Editor to create the following diagram:

Figure\x11 80 : The MSC for the System DemonGame. 
-----
(fig)  
       
-----
The MSC basically consists of four instances (the vertical lines starting with a rectangle), a number of messages (the horizontal lines ending with an arrow), a create process (the dashed horizontal line), a timer (the symbol starting with an hourglass and ending with an arrow) and two condition symbols (with the shape of a hexagon). You also find a text symbol, containing a textual comment in it and two comment symbols (with the same appearance as SDL comment symbols).

How to Draw the MSC

We suggest that you draw the MSC as follows:

  1. Start by entering a text symbol and fill in its contents. (This is done in the same way as with the SDL Editor).
  2. Then, insert the three instances with the instance name env, Main and Demon:
  3. Once the instances are added, insert the message Newgame:
  4. The instance Game is dynamically created. To add Game, you use the create process symbol. You insert it in a similar fashion as a message:
  5. Continue by adding the first condition symbol to the instance axis Game:
  6. Add a comment symbol and connect it to the condition symbol, by dragging the handle and drawing a line that you attach to the condition symbol with an extra mouse click. Also type in the comment text.
  7. Add a timer to the instance axis Demon:
  8. Add the second condition and its comment symbol.
  9. Add the remaining messages. The message Score also contains a parameter with the value 1. To enter the parameter value, select the lower of the two selection rectangles and type in the text.
    Figure\x11 82 : The Text Attributes Associated to a Message. 
    -----
    (fig)  
           
    -----
    
  10. Conclude the editing of the MSC by adding a process stop symbol.
  11. Before leaving the MSC editor, you should save the MSC. When saving the newly created diagram, the editor suggests the file name demongame.msc
    Figure\x11 83 : Default File Name for the MSC. 
    -----
    (fig)  
           
    -----
    

The Cross Reference Viewer

In this exercise, you will practice on the Cross Reference Viewer. The Cross-Reference Viewer is a dedicated tool that presents a graphical view of the definitions and references to SDL entities available in an SDL system. It manages virtually all SDL information related to a system and has a number of facilities for navigating back to the source SDL diagrams.

A prerequisite to this exercise is an up-to-date file containing the definitions and cross-references, which must be generated as a secondary result of the semantic analysis of the system (see page 109).

If you have changed any of the SDL diagrams since the last analysis of the system, you should regenerate the file.

What You Will Learn

Starting the Cross Reference Viewer

  1. You start the tool with the Cross Ref Viewer command from the Organizer's Tools menu. As an alternative, you may click the quick button for the Cross Reference Viewer. Do this now!

    In response to a click on the quick button, the Analyzer first generates a cross-reference file to make sure you are working on an updated version.
    Then, after a few seconds, SDT responds by displaying the Cross Reference Viewer window, where the contents of the file are shown in a graphical list.

    Figure\x11 84 : The Cross reference Viewer Window. 
    -----
    (fig)  
           
    -----
    
In the next exercise, you will use the Cross Reference Viewer to identify all possible situations where a signal may be sent or received. We will also look for the definition of the signal.

Finding a Definition

Let us look for the definition of the signal Bump.

  1. Click on the quick button for Search. A dialog prompts you to specify a text string:

    Figure\x11 85 : Searching for a Text. 
    -----
    (fig)  
           
    -----
    
  2. Type in the name Bump and click the Search button. The Cross Reference Viewer window is immediately scrolled to make a signal icon with the name Bump visible.
  3. Also, a second window, titled SDT References, appears on top of the Cross Reference Viewer. Arrange the two windows to make both visible (you may need to resize them as well).
    Figure\x11 86 : The Two Windows Arranged. 
    -----
    (fig)  
           
    -----
    
  4. Make sure the icon is selected.
  5. From the SDT Cross Reference Viewer window Tools menu, select the command Show Definition.
    After a short while, an SDL Editor window is displayed on the diagram for the system DemonGame. A text symbol, containing the declaration (i.e. the definition) of the signal is selected. Furthermore, the text cursor is positioned on the line of text in which the signal has been located (see Figure 87).
    Figure\x11 87 : The Definition of the Signal is Displayed. 
    -----
    (fig)  
           
    -----
    

Finding References

The lower window (titled SDT References) shows the icons for the SDL entities in which the signal has been referred. The information displayed in Figure 86 should be interpreted as:

To conclude this exercise, you will now locate the places where the signal is output and input. Let us start with the inputs.

  1. Select the input icon.
  2. Select the Tools menu. It should contain three menu choices; their order of appearance is Show Reference 1, Show Reference 2 and Show Entity List.
  3. Select the first menu choice - an input symbol is selected in an SDL Editor window, showing the diagram for the process Game. Select the second menu choice - the second input symbol is selected, also in process game. These are the places where the signal may be input.
  4. Double-click the output icon. An output symbol is selected in an SDL Editor window.

So Far...

You should now have learned how to use the basic functions in SDT for creating, managing, editing, printing SDL diagrams as well as Message Sequence Charts. You should also have practiced on syntactic and semantic checks on your SDL diagrams. Finally, you should have acquaintanced yourself with the Cross Reference Viewer.

Your next task will be to "animate" your first SDL system by simulating it. A number of exercises are prepared in the next part of the tutorial, starting on page 127.


Footnotes

(1)
FrameMaker / FrameViewer / FrameBuilder is a desktop publishing environment, developed and marketed by Frame Technology Corporation. The SDT manuals are created with FrameMaker. NCSA Mosaic and Netscape are Internet information browsers and World Wide Web clients. NCSA Mosaic was developed at the National Center for Supercomputing Applications at the University of Illinois, Urbana-Champaign. Netscape is developed by the Netscape Communications Corporation.
(2)
Ghostview: An X11 user interface for ghostscript. 1992 Timothy O. Theisen.
(3)
A system file may contain information related to any kind of SDL structure, not necessarily an SDL system. The term system file is a general term.
(4)
The exact appearance of the menu choice depends on the directory structure you are working on.
 
Table of Contents Next Chapter