![]() |
![]() |
![]() |
![]() |
![]() |
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:
- Locate the block reference symbol DemonBlock in the SDL Editor. Double-click on the reference symbol. A dialog is opened.
- 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
- Make sure the Copy existing file button is turned on.
- 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.
- 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.
- 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.
- Accept the suggestion by clicking the OK button. The resulting Organizer's diagram structure should be as follows:
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 |
![]() |
![]() |
![]() |
![]() |