Table of Contents Previous Chapter 25 The MSC Editor
The MSC Editor menu bar provides the following menus:
Figure 370 : The File Menu.
-----
(fig)
-----
The commands beneath the File menu allows to perform the following operations:
This command creates a new MSC.
- New MSC diagrams are assigned the default name Diagram_1, Diagram_2,..., Diagram_N.
- The newly created diagram is immediately displayed in the MSC Editor window.
This command opens a file on which an MSC is stored. A Standard Directory Selection Dialog is issued (see Figure 371).
Figure 371 : Opening an MSC.
-----
(fig)
-----
The Filter field is set to *.m?? by default. This extension corresponds to the default file extensions that are applied to MSC files.
- See "Save" on page 1313 for information about default file extensions.
------------------------------------------------------------------
Note:
SDT does not impose any specific file extension on MSCs. If other
file extensions than the ones suggested by SDT have been used
when saving MSC files, a different filter than *.m?? should be ap
plied.
------------------------------------------------------------------
The MSC Editor supports reading Message Sequence Charts stored in either:
As a file is selected in the Files list, relevant one-line information related to the file is displayed in the status bar at the foot of the MSC Editor window.
This menu choice saves the current diagram. The menu choice reads Save (Not needed) if no changes have been done to the diagram since the last Save.
When a newly created diagram is to be saved, a Standard File Selection Dialog is issued following the Save menu choice. The dialog prompts to specify what file to save the diagram on.
Figure 372 : Save of a New Diagram
-----
(fig)
-----
-------------------------------------------------------------------
Note: Default file names
The default file name that the MSC Editor suggests consists of
· <diagramname> appended with
· an enumerated integer value (1, ..., N) if the
<diagramname>/file extension already exists,
· a default file extension (see Figure 372 and "Default File Exten
sion", below). Reserving these default file extensions for Mes
sage Sequence Charts makes it easier to locate them in the file
system.
-------------------------------------------------------------------
--------------------------------------
Storage Format Default File Extension
--------------------------------------
MSC-GR .msc
MSC-PR .mpr
--------------------------------------
This menu choice allows to save a copy of the current MSC on a new file. The MSC Editor associates the MSC with the new file and the Organizer Reconnects the MSC icon with the newly created file in order to maintain consistency.
The name of the new file is to be specified in a Standard File Selection Dialog. The MSC Editor suggests a default file name, using the same rules as for Save of newly created Diagrams (see page 1314).
If the user changes the suggested file name to specify a file that already exists, the MSC Editor issues a confirmation dialog:
Figure 373 : The Save Confirm Dialog.
-----
(fig)
-----
- A click on the OK button confirms the overwriting of the existing file.
- A click on Cancel returns control to the Standard File Selection Dialog, prompting to specify another file to save the copy on.
This menu choice saves a copy of the current MSC on a new file.
--------------------------------------------------------------------
Note:
The MSC Editor window will hold the original file in its window,
not the newly saved copy of the diagram. The diagram remains
connected to the old file and the Organizer's structure is left unaf
fected by the operation
--------------------------------------------------------------------
The name of the new file is to be specified in a Standard File Selection Dialog. The MSC Editor suggests a default file name, using the same rules as for Save of newly created Diagrams (see page 1314).
If the name of an already existing file is entered, the MSC Editor prompts the user to confirm the operation in the same way as when ordering Save As on an existing file.
This menu choice saves all modified diagrams that are open in the MSC Editor. This menu choice is dimmed if no modifications have been made to any MSCs currently being edited.
Any new diagram that needs to be saved will cause a file section dialog to be issued (see "Save of newly created Diagrams" on page 1314).
This command closes the current diagram and its associated window.
If the diagram has been modified, the MSC Editor will prompt to save the changes before closing the diagram.
Figure 374 : Prompting to save changes when closing a diagram.
-----
(fig)
-----
- Clicking Save saves the diagram and closes it.
- Clicking No save closes the diagram without saving it.
- Clicking Cancel returns control to the MSC Editor without closing the diagram.
This menu choice invokes the Print Utility. Following selection this command, a print dialog is issued in order to specify what to print and how to print it.
Figure 375 : MSC Editor Print Dialog.
-----
(fig)
-----
See page 1456 for further description.
This menu choice closes all MSC Editor windows that are open, and terminates the MSC Editor session. When Exit is selected, the following menu - see Figure 376 appears for each of the diagrams open which have been modified.
Figure 376 : Saving at Exit.
-----
(fig)
-----
- Save
Saves any changes made to the current diagram. Once the diagram has been saved, the MSC editor will then proceed with the next diagram in turn to be saved (in which case the Save dialog is issued again).
- Save All
Saves all the changes and modifications made on all diagrams during the current session without prompting for each diagram, and then exits the MSC Editor.
- No Save
Closes the current diagram without saving it. The MSC Editor will then prompt for the next diagram to be saved.
- Quit All
Exits the MSC Editor without saving any changes.
- Cancel
Cancels the exit request without exiting the MSC Editor.
Figure 377 : The Edit Menu.
-----
(fig)
-----
The Edit menu provides editing functions that operate on the objects in the diagram. The following menu choices are available:
This command restores the content of the drawing area to its state prior to the most recently performed operation. The following operations can be undone:
This command removes the current selection from the drawing area, and saves it in the clipboard buffer. Cut is only valid if a selection is defined.
----------------------------------------------------------------------
Note:
Cutting an instance head symbol or its instance axis line will delete
virtually all objects that were connected with the instance axis, un
less they were selected.
----------------------------------------------------------------------
This command makes a copy of the current selection in the clipboard buffer. The content of the drawing area is not affected by this menu choice. Copy is only valid if a selection is defined.
This command inserts the contents of the clipboard buffer into the drawing area. Paste is only valid if a selection has previously ben cut or copied into the clipboard buffer.
Once the Paste is activated, a dashed rectangle appears in the drawing area, following the mouse pointer. The rectangle contains the current selection, which appears as dashed symbols.
---------------------------------------------------------------
Note:
Paste may be interrupted at any moment by pressing <Esc>.
---------------------------------------------------------------
When pasting the selection, the MSC Editor will process each individual object contained in the selection, adjust it to the Grids if required and connect it, if feasible, to the "closest" object(s) in the drawing area.
If, for some reason, the MSC Editor fails in pasting some of the objects contained in the selection, the following message is issued, for each of the objects:
Figure 378 : The Failed to Paste Message.Figure legend: The message refers to
aninstance end that could not be pasted.
-----
(fig)
-----
When pasting a selection that consists of multiple objects, the MSC Editor attempts, as long as feasible, to preserve the original appearance of the selection.
When pasting individual objects, the MSC Editor processes the objects as follows:
- Text
A text symbol may be pasted anywhere.
- Comment
A comment symbol may be pasted anywhere. The line connecting the comment symbol to another symbol is however lost when pasting.
- Instance head / Instance axis
The instance head and its axis may be pasted anywhere.
- A process create symbol stub is created in conjunction to pasting the instance. The MSC Editor connects, if possible, the source of this process create to the closest instance axis, with respect to the location of the process create symbol (left or right of the instance axis).
- The pasted instance is thus dynamically created by default (since there is no way to change a static instance to a dynamic one with the MSC Editor). Once the instance is pasted, removing or reconnecting the process create is possible.
- Instance end
An instance end may be only be pasted at a location where it overlaps an instance axis.
- Message
A message is connected to the instance axises which are closest to the message's source and end point, preserving the direction and "height" of the message. If a message is pasted to the right of the rightmost or to the left of the leftmost instance, only the message's source point will be connected.
- Message-to-self
A message-to-self is connected to the closest instance axis. The "height" of the message is preserved.
- Condition
A condition may only be connected at a location where is overlaps an instance axis (the target instance axis). Before the MSC Editor pastes the symbol, a Connect dialog is issued (see page 1327), where the user is prompted to specify what instances the symbol should be connected to. The instance is connected to the target instance only, by default.
- Timer
A timer is connected to the closest instance axis. The "height" of the timer is preserved.
- Action
An action may only be pasted at a location where is overlaps
an instance axis.
- Create
The create symbol is pasted in a similar way as when pasting an instance (see "Instance head / Instance axis" on page 1321).
- Stop
A stop may only be pasted at a location where is overlaps an instance axis.
- Coregion
A coregion is connected to the closest instance axis, to the left or right. The "height" of the coregion is preserved.
This command removes the selected object(s) from the drawing area. Clear is only valid if at least one object is selected.
---------------------------------------------------------------------
Note:
Clearing an instance head symbol or its instance axis line will also
remove virtually all objects that were connected with the instance
axis regardless of if they were selected or no.
---------------------------------------------------------------------
- A created instance left without "parent" is kept in the chart as static instance.
- Clearing an instance end reconnects the instance axis to the bottom of the chart.
This command displays and possibly modifies the status of a:
Upon activation of the menu choice, a dialog is issued where the current status for the object that is currently selected is displayed by having the corresponding radio button turned on (see Figure 379 - Figure 381).
Figure 379 : The Instance Status Dialog.
-----
(fig)
-----
Figure 380 : The Message Status Dialog.
-----
(fig)
-----
Figure 381 : The Timer Status Dialog.
-----
(fig)
-----
- Turning a radio button on and clicking OK applies the new status and closes the dialog. The object is redrawn in the drawing area, with an appearance that matches the status newly applied.
- Clicking Cancel closes the dialog without changing any status.
An instance may be decomposed into a sub MSC. This is indicated by a text attribute with the predefined contents decomposed located immediately beneath the instance head (see Figure 382).
Figure 382 : Instance Status.
-----
(fig)
-----
The status concept has been extended in SDT in order to map it to the SDL signal concept and to allow a way of expressing situations that are subject to occur in a real-time system(1), namely:
- A signal is sent to a receiver but has not yet been processed - sent. Typically, the signal is waiting in the receiver's input queue.
- A signal is sent to a non-existing receiver - lost.
- A signal has been sent and is processed by the receiver - consumed.
The MSC Editor displays these differences through the use of an asterisk located close to the message's ending arrow (see Figure 383).
Figure 383 : Message Status.
-----
(fig)
-----
Z.120 specifies two appearances for the timer symbol, depending on whether the timer has expired (i.e. timeout) or whether the timer is reset. SDT extends the timer status concept to the following (in analogy to the Message Status, see above. The appearance of the timer is illustrated in Figure 384.
This menu choice presents the Make Space dialog, where space for events may be inserted.
Figure 385 : The Make Space Dialog.
-----
(fig)
-----
- The radio buttons Before selected object and After selected object define whether space for insertion of events should be created before or after the currently selected object.
- The Space of text field allows to specify how many events should be possible to insert.
- Clicking OK inserts space according to the insert mode and the number of events. All objects which are found after the currently selected object are pushed downwards. If the insert mode is set to insert before, the currently selected object is also pushed down.
- Clicking Cancel closes the dialog without changing anything.
This command changes the orientation of a selected message. The new direction is indicated by a change in the orientation and position of the message end and of the message parameters.
This command opens the connect dialog that is used to connect a selected condition symbol to one or multiple instances.
Figure 386 : The Connect Dialog.
-----
(fig)
-----
The Condition Name field allows to enter or change the name of the condition.
The Instance List lists all possible instances that are concurrent with the condition.
- Instances in the list that are selected or already connected are highlighted. Clicking an entry in the list toggles its state between highlighted and not highlighted.
- Select Connect connects the condition symbol to the instances in the instance list that are currently selected.
- Selecting Global connects the condition symbol globally to all instances in the list.
- Selecting Cancel exits the dialog without reconnecting the condition symbol.
This command allows a renaming and retyping(2) of the Message Sequence Chart. Following the menu choice, a dialog is issued where the MSC Editor prompts for the new name:
Figure 387 : The Rename Diagram Dialog.
-----
(fig)
-----
- The Diagram Name designates the new name of the diagram.
- The MSC / SubMSC radio buttons define whether the new diagram should be a Message Sequence Chart or a Sub Message Sequence Chart. The type of MSC is reflected in the Heading Symbol (see page 1304).
- Clicking the Rename button renames the MSC and updates the diagram heading with the new name and type.
- Clicking Cancel closes the dialog without renaming the diagram.
This menu choice changes the size of the MSC. A dialog is issued:
Figure 388 : The Diagram Size Dialog.
-----
(fig)
-----
- Type in the desired width and height into the text fields. Sizes must be within the ranges shown in the dialog.
- Clicking OK applies the width and height values. The diagram is resized accordingly.
- Clicking Cancel exits the command without changing the size of the MSC.
This command allows to modify the space which is automatically inserted between the symbols and lines when appended to the chart. Following this command, the dialog illustrated in Figure 389 is issued.
Figure 389 : The Spacing Dialog
-----
(fig)
-----
- The dialog presents two scales for setting the minimum horizontal distance between instance axes and the minimum vertical distance between messages. The range boundary are calculated by the editor (they depend on how many symbols exist in the drawing area and on the drawing area size).
- Dragging a slider performs a coarse adjustment.
- Clicking on the bar, left or right of the slider performs a fine adjustment.
- Clicking OK, the distance between lines and symbols will be adjusted to an integer multiple of the spacing parameters. The MSC is redrawn accordingly.
- Clicking Cancel exits the dialog without changing the spacing parameters.
This operation selects all objects contained in the current MSC.
Figure 390 : The View Menu.
-----
(fig)
-----
The View menu contains rescaling functions and access to various options that affect the behavior of the MSC Editor.
The following choices are available beneath the View menu:
This menu choice issues a dialog where the scale may be adjusted (see Figure 391).
Figure 391 : The Scale Dialog.
-----
(fig)
-----
- The dialog presents a text field Window Scale where the scale should be entered.
- Clicking the Scale button applies the value currently defined in the dialog. The scale is saved between Editor sessions.
- Clicking the Overview button applies a scale required to display an overview of the drawing area. What scale this corresponds to is indicated on the button. The scale is saved between Editor sessions.
- Clicking Cancel exits this menu choice without rescaling.
This menu choice issues a dialog where to set the options that affect the window properties (see Figure 392).
Figure 392 : The Window Options dialog.
-----
(fig)
-----
The various window options are described below.
- Clicking OK applies the options as defined in the dialog to the current window only.
- Clicking All Windows applies the options as defined in the dialog to all windows opened by the MSC Editor.
- Clicking Cancel closes the dialog without changing the window options.
- Tool Bar
This option determines whether the tool bar (featuring the Quick Buttons) should be displayed or not. Situated immediately below the menu bar, a set of quick buttons form the content of the tool bar. They offers a quick and handy method of performing certain routine actions.
- Status Bar
This option determines whether the Status Bar should be displayed or not. At the base of the window, it contains one line of information that provides additional information on the selected menu choice or symbol.
- Symbol Menu
This option determines whether the Symbol Menu should be visible or not. The space allocated to the symbol menu will be reused by the drawing area when hiding the symbol menu.
- Instance Ruler
This option determines whether or not the Instance Ruler should be visible or not. The space allocated to the instance ruler will be reused by the drawing area when hiding the instance ruler.
- Text Window
This option determines whether the Text Window should be visible or not. The space allocated to the text window will be reused by the drawing area when hiding the text window.
- Page Breaks
This option determines whether physical page breaks should be displayed or not in the drawing area. These page breaks are defined by the print preferences; they show where the print utility will break the diagram into multiple printout pages.
This menu choice issues a dialog where to set the options that affect the editing properties applied on the current diagram.
Figure 393 : The Diagram Options Menu.
-----
(fig)
-----
- Show Instance Name
This option determines whether or not the name of an instance should be displayed in the drawing area.
- Show Instance Kind
This option determines whether or not the kind of an instance should be displayed in the drawing area.
- Show Instance Composition
This option determines whether or not the composition of an instance should be displayed in the drawing area.
- Show Message Name
This option determines whether or not the name of a message should be displayed in the drawing area.
- Show Message Parameters
This option determines whether or not the parameters of a message should be displayed in the drawing area.
- Clicking OK applies the options to the current MSC. The diagrams options are also saved on file when the diagram is saved.
- Clicking Cancel closes the dialog without changing the options.
This menu choice issues a dialog where the behavior of the MSC Editor may be customized.
Figure 394 : The Editor Options Dialog.
-----
(fig)
-----
The options are controlled by toggle buttons. They are:
- Always new Window
This option indicates whether or not a new window should be opened whenever the New or Open command is operated.
The default behavior is not to open a new window.
- Sound
This option indicates whether or not improper actions in the MSC Editor, such as attempting to append a symbol to an illegal position, should be brought to the user's attention by producing an alert sound.
The default value for this option is on.
This command issues a dialog where the insert mode may be specified. The insert mode determines whether space that is created should be before or after the currently selected object and where to place a dynamically created instance in relation to its parent instance.
Figure 395 : The Insert Options Dialog.
-----
(fig)
-----
The dialog has two areas:
This area has two radio buttons, controlling the insert mode when double-clicking symbols in the symbol menu and when operating the Make Space command. (This option may be temporarily overridden in the Make Space dialog command is performed.) The options are to specify whether to add space:
- Before selected object - the MSC Editor will add space before the objects that is currently selected.
- After selected object - The space will be created after the currently selected object.
This area has three radio buttons, defining the insert mode when appending dynamically created processes by double-clicking the create process symbol. This option governs how child instances will be placed in relation to the parent instance. The following modes are supported:
- First Closest - The MSC Editor will group created child instances next to the parent instance, with the first one created placed closest to the parent instance.
- Latest Closest - Created child instances are positioned next to the parent instance, with the latest created instance placed closest to the parent instance.
- Outer Placement - Each newly created instance is placed in the first free position to the left of the parent instance.
Figure 396 : The Diagrams Menu.
-----
(fig)
-----
The Diagrams menu records all MSCs that are opened by the MSC Editor.
The available menu choices are:
The last opened MSC always goes to the top of the list, and subsequently moves the other diagrams and pages down a position. A maximum of 9 open MSCs can be shown. A tenth one will be put at the top of the list, but any subsequent opening of a diagram or page will only show the last 9 to have been opened. Another option - List All (at the bottom of the list) is available to list all the open diagrams in the MSC Editor.
A diagram that is preceded by an asterisk (`*') denotes that it has been modified during the MSC Editor session.
This menu choice becomes available when a minimum of 9 open diagrams has been surpassed. When List All is selected, it provides a dialog containing all diagrams and pages that are currently open in the MSC Editor (see Figure 397).
Figure 397 : Listing All Diagrams.
-----
(fig)
-----
- The list may be scrolled horizontally and vertically. Each item in the list provides information about the diagram name, a hyphen and, possibly, the file it is stored on (the file information is missing if the diagram has never been saved).
- To select an MSC to be displayed, highlight it by clicking on it, and then click on OK. The MSC is visualized, and its title is shown at the top of the Diagrams list of open diagrams
Figure 398 : The Windows Menu.
-----
(fig)
-----
The Windows menu contains the following menu choices:
This command opens a new window containing a new view on the MSC contained in the source window from which this menu choice was operated. The MSC can be edited in any window.
This option closes the open window, but, not necessarily the diagram. All but the last open window may be closed, the last one must be closed from the File Menu, possibly in conjunction with a Save of information (see "Close Diagram" on page 1316).
This command issues a dialog as shown in Figure 399, displaying additional information about the currently selected MSC object.
Figure 399 : The Info Dialog.
-----
(fig)
-----
The dialog presents:
- A scrollable information window providing information about the currently selected object. The information which is available depending on what object is selected is summarized in the tables on page 1339 to page 1341.
- A Show SDL Symbol button that allows, if the MSC has been automatically generated using the SDT Simulator or SDT Validator, to obtain a trace-back to the SDL source diagrams. (Manually inserted symbols and lines do not, of course, contain any trace-back information). Clicking this buttons displays the SDL source symbol in an SDL Editor window. To behave properly, this feature requires that the SDL source diagram is consistent with the generated MSC, e.g. the SDL diagram may not have been modified so that the source symbol has been removed.
-------------------------------------------------------------
Selected Object Information Available
-------------------------------------------------------------
Instance head · Instance name
· Instance kind
· Composition
· Creating instance
Instance end · Instance kind
Stop · Instance kind
Process create · Creating instance
· Created instance
· When the instance was created (a)
Message output · Message name
(the message output is · Sending instance
selected by clicking · Receiving instance
close to the message · Message status =
base)
- Lost (b)
- Sent (c)
- Consumed (d)
· When the message was sent (now) a
· Message parameters
-------------------------------------------------------------
- (a)
- Only for diagrams created through a simulation.
- (b)
- A message is lost when an exceptional situation has occurred, such as sending a message to a non-existing instance.
- (c)
- A message is sent when it has been sent and received, but has not yet been consumed by the receiving instance. Typically, it is waiting in the receiving process input queue.
- (d)
- A message is consumed when it has been processed by the receiving instance.
-------------------------------------------------------------
Selected Object Information Available
-------------------------------------------------------------
Message input · Message name
(the message input is · Sending instance
selected by clicking · Receiving instance
close to the message · Message status=
end)
- Lost (a)
- Sent (b)
- Consumed (c)
· When the message was consumed
(no time indication is given when
Sent) (d)
· Message parameters
Timer set · Timer name
(the timer set is · Instance kind
selected by clicking · Timer status=
close to the timer base)
- Set
- Reset
- Implicit reset
- Consumed
· When the message was sent (now)d
· Timer value (Set)
· Timer parameters
-------------------------------------------------------------
- (a)
- A message is lost when an exceptional situation has occurred, such as sending a message to a non-existing instance.
- (b)
- A message is sent when it has been sent and received, but has not yet been consumed by the receiving instance. Typically, it is waiting in the receiving process input queue.
- (c)
- A message is consumed when it has been processed by the receiving instance.
- (d)
- Only for diagrams created through a simulation.
------------------------------------------------------------
Selected Object Information Available
------------------------------------------------------------
Time-out · Timer name
(the time-out is · Instance kind
selected by clicking · Timer status=
close to the timer end)
- Set
- Reset
- Implicit reset
- Consumed
· When the message was consumed
(now) (a)
· Timer parameters
Action symbol · Instance kind
· Action text
Condition symbol · Condition name
· Instances connected to the condi
tion
Text symbol · Symbol text
Comment symbol · Symbol text
Additional heading · Symbol text
------------------------------------------------------------
- (a)
- Only for diagrams created through a simulation.
Figure 400 : The Tools Menu.
-----
(fig)
-----
The Tools menu provides following functions:
The Tidy Up command orders the MSC Editor to reform and redraw an MSC. The editor compresses and orders the information in the diagram. The dialog allows to specify the horizontal and vertical spacing as well as the grouping mode (see "Insert Options" on page 1334).
Figure 401 : The MSCE Tidy Up Dialog.
-----
(fig)
-----
The dialog provides:
- Two bars for the adjustment of the horizontal and vertical spacing parameters to apply when tiding up the diagram. See "Spacing" on page 1329 for a description of these parameters.
- Three radio buttons which control how to group the dynamically created instances, in relation to their parent instances. See "Insert Options" on page 1334 for more information about this parameter.
The filter allows to hide parts of an MSC by filtering it to view only a certain part. The filtered diagram is copied under a new name.
Figure 402 : The MSCE Filter Dialog.
-----
(fig)
-----
The dialog provides the following options:
- A list of the instances that are included in the current MSC. Clicking on an item in the Include Instance list highlights it and will submit it to the instances to be included in the new MSC. Clicking a highlighted item deselects it. The instance list is empty if the Only Selected Messages option is on.
- Turning the Only Selected Messages option to on restricts the objects to show in the filtered diagram to those selected objects only. Any instances that are connected to the objects are also shown. This option is dimmed if no object is selected in the MSC.
- A number of toggle buttons, where the objects to include in the filtered diagram are specified:
- Message out (messages that are sent)
- Message in (messages that are received)
- Create process
- Timers
- Conditions
- Actions
- Comments
- Text symbols
Where a message or process create is issued by or received by an instance that is not included in the instances to include in the filtered MSC, that instance will be included as well.
- Clicking the Filter button filters the source diagram and creates a new, unsaved diagram. The name of the new diagram consists of the prefix Filter, the name of the source diagram and of a suffix which is an enumerated integer: Filter_<diagramname>_<number>
- Clicking Cancel exits the dialog without filtering the diagram.
This command generates a textual description of the current MSC, using the Z.120 MSC-PR syntax. The resulting text is stored on a user provided file. Following the menu choice, the MSC GR to PR dialog is issued.
Figure 403 : The MSC GR to PR Dialog.
-----
(fig)
-----
The dialog prompts to specify:
- The output file where to store the resulting MSC-PR. The file name may either be typed into the text field or an existing file may be specified by clicking the folder button in the dialog and navigating in the Standard File Selection Dialog which is issued. The default file that the MSC Editor suggests consists of the name of the MSC, with the .mpr file extension, i.e. <diagramname>.mpr
- Whether the MSC Editor should generate event oriented(3) or instance oriented(4) MSC-PR, by turning the corresponding radio button on. For more information about the definition of the MSC-PR syntax, see the Z.120 recommendation.
--------------------------------------------------------------
Note: Instance oriented MSC-PR and SDT
SDT can only create instance oriented MSC-PR. SDT cannot read
instance oriented MSC-PR files.
--------------------------------------------------------------
- Clicking Generate generates the MSC-PR definition for the current diagram according to the options that are specified.
- Clicking Cancel closes the dialog without generating any file.
----------------------------------------------------------------
Note: Comment symbols and MSC-PR
Since "free" comment symbols, i.e. comment symbols that are not
connected to any other symbol, are not permitted in MSC-PR but
have be defined using the MSC Editor, free comment symbols are
converted to text symbols in the generated MSC-PR.
----------------------------------------------------------------
This menu choice generates an SDL-PR(5) description for the currently selected instance. The resulting text is stored on a file. The command is dimmed if not exactly one instance is selected in the MSC Editor.
The Generate SDL dialog is issued upon activation of the command.
Figure 404 : The Generate SDL Dialog.
-----
(fig)
-----
The dialog prompts to specify the following generation options:
- Whether the resulting SDL-PR should be transformed to an SDL process or an SDL procedure. The option is set by turning the corresponding radio button on.
- If Test Case Extensions should be added or not to the generated SDL code.
- The name of the resulting SDL diagram. The MSC Editor suggests the same name as the instance name. The name of the SDL diagram may be changed in the Name text field.
- The output file where to store the resulting SDL-PR. The file name may either be typed into the text field or an existing file may be specified by clicking the folder button in the dialog and navigating in the Standard File Selection Dialog which is issued. The default file that the MSC Editor suggests consists the name of the MSC appended with the .pr suffix, i.e. <diagramname>.pr
- Clicking Generate orders the MSC Editor to produce the SDL-PR file according to the options. See "MSC to SDL Translation Table" below for a reference of how MSC objects are translated to SDL concepts.
- Clicking Cancel closes the dialog without generating any SDL code.
The table below describes the translation scheme that is followed when generating SDL-PR from an MSC.
---------------------------------------------
MSC construct SDL-PR expression
---------------------------------------------
(fig) process <P>;
start;
(fig) procedure <P>;
(fig) state sdt_state_1;
input MSG1 ()
comment `Parameters:PARAM';
...
nextstate sdt_state_2;
(fig) output MSG2 ()
comment `Parameters: PARAM'
to (Adr)
(fig) create P (PARAM);
(fig) set (now + PARAM, TIMER_NAME);
nextstate sdt_state_3;
...
reset TIMER_NAME;
(fig) state STATE_NAME;
(fig) task `ACTION_TEXT';
(fig) comment (COMMENT_TXT);
(fig) stop;(a)
(fig) endprocess;
(fig) endprocedure;
---------------------------------------------
- (a)
- Only when generation of SDL process.
When specifying that test case extensions should take place, the MSC Editor adds chunks of SDL-PR code that have the ability to report that the expected signal or another signal than the expected one has been received.
The translation scheme becomes:
---------------------------------------------
MSC construct SDL-PR expression
---------------------------------------------
(fig) state sdt_state_1;
input MSG1 (PARAM);
task
/*#CODE
xAssertError ("Passed");
*/;
...
nextstate sdt_state_2;
...
/* Elsewhere in the PR file */
state *;
input *;
task
/*#CODE
xAssertError ("Failed");
*/;
---------------------------------------------
Where the function xAssertError is an user provided function.
This command issues a message where the graphical reference for the currently selected object is displayed.
Figure 405 : The Show GR Reference Message.
-----
(fig)
-----
The syntax of the graphical references used in the SDT environment is described in chapter 41, References in SDT-3.
This command produces a file containing a list of definitions and cross references of entities contained in the current MSC.
The contents of this file may be read and displayed in the Cross Reference Viewer; see chapter 27, The Cross Reference Viewer.
This command raises the parent SDT Organizer Main Window, i.e. from where the MSC Editor was started.
The Help menu is described in chapter 21, The SDT Graphical User Interface, on page 1033.
In addition to the standard keyboard accelerators, described in the chapter The SDT Graphical User Interface, the MSC Editor features the following:
------------------------------------------------------
Accelerator Command / functionality
------------------------------------------------------
<Delete> Clear, (Remove, Delete, see page 1323)
------------------------------------------------------
The popup menu is a activated by pressing the right mouse button. The popup menu remains active until the next mouse click or until the <ESC> key is typed.
The popup menu contains the most often performed menu-choices from the Edit menu; the exact content depends however on the type of diagram.The available menu-choices on the popup menu are:
In addition to the generic Quick Buttons that exist in all SDT tools (see page 1035), the MSC Editor tool bar features the following quick buttons:
------------------------------------------------------------------------------
(fig) Make space for new events
Create space between two events (the same as the Make Space com
mand, see page 1326).
(fig) Remove space between two events
Remove the unrequired space between two events.
(fig) Text window on / off
Toggle the Text Window between visible and hidden (the same as the
Text Window option, see page 1332).
(fig) Instance ruler on / off
Toggle the Instance Ruler between visible and hidden (the same as the
Symbol Menu option, see page 6).
(fig) Symbol menu on / off
Toggle the Symbol Menu between visible and hidden (the same as the
Symbol Menu option, see page 1332).
------------------------------------------------------------------------------
This page intentionally left blank
Footnotes
- (1)
- For instance, the MSC Editor takes full advantage of the message status when tracing a simulation.
- (2)
- An MSC may either be a "normal" MSC or a sub MSC.
- (3)
- Event oriented MSC-PR describes the MSC using the order in which the events occur, i.e. starting with the top of the diagram and downwards, providing the feeling of a global event order.
- (4)
- Instance oriented MSC-PR describes the MSC on an instance by instance basis. The feeling of a global event order within the MSC is lost.
- (5)
- SDL-PR is the textual form for the Z.100 definition.
Table of Contents Next Chapter