IBM
Contents Index Previous Next



Creating a Block Diagram From a Copy


What You Will Learn

Creating the Block DemonBlock

You created the block GameBlock from the Organizer by double-clicking the symbol. You may also do this from within the SDL Editor, by double-clicking on diagram reference symbols.

To create the block DemonBlock:

  1. Locate the block reference symbol DemonBlock in the SDL Editor. Double-click on the reference symbol. A dialog is opened.

Figure 57 : Prompting to create the block DemonBlock

You will now create the diagram by using a copy of an existing file. The 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 installation directory. The name of the directory should be $telelogic46/sdt/examples/demongame (on UNIX), or C:\IBM\Rational\SDL_TTCN_Suite6.3\sdt\examples\demongame (in Windows).
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 the directory mentioned above. 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.

  1. Make sure the Copy existing file button is turned on.
  2. Then, either:
    • Type in the file name, including the directory path (according to above),

      or
    • Click on the folder button to the right of the text field. A file selection dialog (with the title Select File to Copy for Block DemonBlock) is displayed.
    • In the dialog, navigate in the directory structure until you have located the directory where the diagrams are stored (see the directory path above). On UNIX, you double-click the directory names in the left list and find any block diagram files in the right list. In Windows, you select directories from the Look in box or double-click directories in the list.
    • Select the file DemonBlock.sbk that appears in the list and click OK.

Note: Accessing files on other disks

In Windows, you may use so-called UNC paths to access network disks by using the syntax \\disk\directory\ when typing the path to file names.

On UNIX, the possibility to change to the [root] directory using the file selection dialog may or may not work properly, depending on your computer system and network file system. You may need to type in a leading slash (`/'), followed by a name, then click OK in order to access files that are stored on another disk than the one you are currently working on (but try first to double-click the [root] directory).

  1. Close the Edit dialog by clicking on the OK button. The SDL Editor shows the diagram in a window. The diagram when printed should look like Figure 58.

Figure 58 : The block DemonBlock

  1. 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.
  2. Accept the suggestion by clicking the OK button. The resulting Organizer's diagram structure should be as follows:

Figure 59 : The resulting Organizer list

You may use the method described above to take a copy of an existing diagram for any diagram in the remainder of this tutorial. However, we recommend that you draw the diagrams from scratch to get yourself acquainted with all editing features of the SDL Editor. How to draw a process diagram (described next) is somewhat different from drawing a block diagram.


http://www.ibm.com/rational
Contents Index Previous Next