Table of Contents Previous Chapter 3 Editing MSC Diagrams

3 Editing MSC Diagrams

Selecting Objects

In order to select one object, simply click the object to be selected. The object is marked in order to indicate that it is selected. Other related topics include the following:

Marking of Selected Objects

Selected objects are marked as follows:

Selecting Multiple Objects

There are several methods of selecting more than one object. You can, for instance, proceed as follows:

In order to select more than one object:

  1. Point outside the group of objects that you want to select. Press the left mouse button and drag the mouse to form a dashed selection border around the objects.
  2. Release the mouse button. The objects are marked to indicate that they are selected.
You can also use the <Shift> key in conjunction with clicking with the mouse. See "Extending the Selection" on page 193.

Selecting an Object that has Associated Objects

An object may have other objects associated to it. When you select an object, all of the object's attributes are also selected. Here are the basic rules:

Selecting a Text Symbol

Selecting a text symbol selects the text symbol and updates the text window with the contents of the symbol.

Selecting a Comment Symbol

Selecting a comment symbol selects the comment symbol and updates the text window with the contents of the symbol. The connection handle is made visible.

Selecting an Instance Head Symbol

Selecting the instance head symbol selects the instance head symbol, the instance axis, and any related process create line. The text window is updated to contain the instance name.

Figure 106 : Selecting an Instance Head. 
-----
(fig)  
       
-----

Selecting an Instance Axis Symbol

Selecting an instance axis implicitly selects the instance head symbol. The text window shows the instance kind.

Selecting an Instance End Symbol

Selecting the instance end symbol selects only the symbol itself. It has no associated text.

Selecting a Message and Message-to-Self Symbol

Selecting a message selects the message and its textual elements. The text window is updated with the message name.

Figure 107 : Selecting a Message. Figure legend: The text attributes (message 
		nameand message parameters) are also selected. 
-----
(fig)  
       
       
       
-----
Figure 108 : Selecting the Message Parameters Only.Figure legend: Only the 
		messageparameters are selected. 
-----
(fig)  
       
       
-----

Selecting a Condition Symbol

Selecting a condition symbol selects the condition symbol and its name. The text window is updated with the condition name and the Connect menu choice in the Edit menu (see page 1327) is made available.

Selecting a Timer Symbol

Selecting a timer selects the timer and its textual elements (the timer name and the timer parameters). The text window is updated with the timer name.

Selecting an Action Symbol

Selecting an action symbol selects the symbol and updates the text window with the text contained in the action symbol.

Selecting a Create Process Symbol

Selecting a create process symbol selects the symbol and updates the text window with the create parameters.

Selecting a Stop Symbol

Selecting a stop symbol selects only the symbol itself. It has no associated text.

Selecting a Coregion Symbol

Selecting a coregion symbol selects only the symbol itself. It has no associated text.

Extending the Selection

You can extend the scope of a selection to include more symbols or lines, as follows:

  1. Press the <Shift> key.
  2. Click a symbol or line that is not currently selected. The object will be included in the current selection.

Reducing the Selection

Whenever you select multiple symbols or lines, it is possible to deselect a subset of them without cancelling the entire selection. You can do this as follows:

  1. Press the <Shift> key.
  2. Click a currently selected symbol or line. The object will be deselected.

Selecting Overlapping Objects

In an MSC, objects may overlap each other. A layer order determines which object will be selected if you point to and click a stack of overlapping objects.

---------------------------------------------------------
Note:                                                      
An object that is selected is always on top of the stack.  
---------------------------------------------------------
The following layer order applies to MSCs, where number 1 represents the top object:

  1. The process create symbol
  2. The message name attribute
  3. The message parameters attribute
  4. The message base point (source)
  5. The message end point (target)
  6. The text in timer symbols
  7. Message lines, the source end of process create lines, timer symbols, coregion symbols, action symbols, instance end symbols, condition symbols and stop symbols
  8. Instance name text attributes and instance kind text attributes
  9. Instance head symbols
  10. Instance axis lines
  11. Text symbols, comment symbols and the additional heading symbol
  12. Heading symbols.
The text symbol and comment symbol are handled separately because they may overlap all other MSC objects. When you append text, the size of the symbol may increase. Therefore, they are always placed in a bottom layer beneath all other symbols and lines.

Cancelling a Selection

To cancel a selection:

Requesting Detailed Information on an Object

The info window is an auxiliary window that provides additional information about a selected object.

To open an info window:

  1. Go to the MSC Editor window showing the diagram on which you want additional information.
  2. Select Info Window from the Windows menu. The info window is immediately displayed.
    Figure 109 : Requesting Additional Information on an Object.Figure legend: The 
    		windowreads "No object selected"when no object is currently selected in the MSC 
    		Editor.
    -----
    (fig)  
           
           
           
    -----
    

Adding and Removing Objects

You can add a symbol from the symbol menu to a chart in two ways:

The topics that are discussed in this section are:

Selecting a Symbol in the Symbol Menu

To select a symbol in the symbol menu, perform these steps:

  1. Point to the appropriate symbol in the symbol menu. The symbol must be valid.
  2. Click the symbol. The symbol is highlighted indicating that it is selected.

Cancelling the Selection of a Symbol

You can cancel the selection of a symbol either by clicking any part of the symbol menu that contains no symbol, or by pressing <Esc>.

Placing the Selected Symbol into the Drawing Area

  1. Move the mouse pointer to the location where you want to place the symbol. As soon as the mouse leaves the symbol menu window, a symbol appears as a dashed rectangle in the drawing area, following the mouse motion.
  2. Click at the desired location. The symbol is drawn and adjusted to the spacing grid. You must click a location where the symbol is allowed to be placed.
  3. You may now enter the symbol's text attributes.

Adjusting Objects to the Grid

The MSCE provides an automatic spacing facility for easier positioning of symbols and lines.

When you draw and move symbols and lines, each object is positioned on the closest intersection in the spacing grid. The resolution of the grid is variable, and can be set using the Spacing command from the Edit menu.

-------------------------------------------------------------------
Note:                                                                
The text and comment symbol do not adhere to the grid; they can be   
placed freely.                                                       
-------------------------------------------------------------------

Inserting Space for Events

When working on an MSC, the space available between two events on an instance axis may not be sufficient for inserting new objects on the instance axis. The MSC Editor can reorganize the MSC in order to provide the required space.

To insert space:

  1. Select the object before or after where to insert space. The object may either reside on one instance axis only or may connect two instances.
  2. From the Edit menu, select the Make Space command. The Insert dialog is issued:
    Figure 110 : Insert Space for new Events. 
    -----
    (fig)  
           
    -----
    
    ----------------------------------------------------------------------
    (fig)  
  3. Alternatively click the quick button for Make space for new events. ----------------------------------------------------------------------
  4. Turn the appropriate radio button on, depending on if you have selected the object before or after where to insert space.
  5. Type in the required number of events to insert (the default is 1 event).
  6. Click OK. The MSC is rearranged and space is created on the instance axis(es).

Removing Space between Events

To remove unnecessary space between events:

  1. Select the object before or after where to remove space.
    ------------------------------------------------------------------
    (fig)  2.  Click the quick button for Remove space between events.  
    ------------------------------------------------------------------
    

Removing Objects

You can remove any selected object(s) with the following sequence of operations:

  1. Select the objects to remove.

Adding a Text Symbol

Adding a Text Symbol Automatically

  1. Select, if required, an object that you want to use as reference point when positioning the text symbol. Double-click the text symbol in the symbol menu.
  2. Fill in the text symbol's contents.

Adding a Text Symbol Manually

To add a text symbol manually:

  1. Select the text symbol in the symbol menu.
  2. Place the text symbol where suitable. The text symbol can be positioned anywhere in the drawing area.
  3. Type the text.

Adding a Comment Symbol

The following conditions apply to comment symbols in the MSC Editor:

Adding a Comment Symbol Automatically

To add a comment symbol automatically, do the following:

  1. Select the object to which you wish to connect the comment.
  2. Double-click the comment symbol in the symbol menu. The symbol will be placed next to the selected object according to the insert mode (see "Insert Options" on page 1334 in chapter 25, The MSC Editor) connected to the selected object.
  3. Fill in the comment text.

Adding a Comment Symbol Manually

To add a comment symbol manually:

  1. Select the comment symbol in the symbol menu.
  2. Place the comment symbol where suitable and release the mouse. The comment symbol can be positioned anywhere in the drawing area.
  3. Drag the handle that appears on the comment symbol. As soon as mouse motion has begun, a dashed line appears, following the mouse pointer. From now on, you can release the mouse.
  4. Click on the symbol you want to comment (any symbol except from a comment symbol, additional heading and text symbol can be connected). The line is drawn accordingly.
  5. Terminate by entering the comment text. The text symbol will adjust in size as text is entered. The comment symbol cannot be resized.

Adding an Instance Head Symbol

When you add an instance head symbol, an instance axis line is drawn automatically that connects the symbol to the bottom of the drawing area. The instance axis line cannot be drawn manually. It will be truncated when you add or move an instance end or stop symbol upwards (or elongated if you move the instance end or stop symbol downwards). See "Adding an Instance End Symbol" on page 203 and "Adding a Stop Symbol" on page 216.

The instance head symbol has three text fields:

Adding a Dynamically Created Instance

You can visualize an instance that is started dynamically by using the process create line. See "Drawing a Process Create" on page 214.

Adding an Instance Head Symbol Automatically

  1. Select, if required, an object that you want to use as reference point when positioning the instance head. Double-click the instance head symbol in the symbol menu.
  2. Fill in the instance head text fields. See Figure 112 on page 201.

Adding an Instance Head Symbol Manually

To insert an instance head manually:

  1. Select the instance head symbol in the symbol menu.
  2. Place the symbol in the drawing area. The instance head symbol can be positioned anywhere. An instance head and an instance axis are drawn.
  3. Fill in the text fields (see Figure 112 on page 201).

Changing the Status of an Instance

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 113).

To change the status of an instance:

  1. Select the instance.
  2. From the Edit menu, select the Status command. The instance status dialog is issued
    Figure 113 : Setting the Instance Status. 
    -----
    (fig)  
           
    -----
    
  3. Turn the radio button of your choice on and click OK. The instance's status is changed accordingly.

Adding an Instance End Symbol

The instance end symbol determines the end of the description of an instance within an MSC. It does not describe the actual termination of the instance. This is done with the stop symbol, see "Adding a Stop Symbol" on page 216..

--------------------------------------------------------------------
Note:                                                                 
If you position the instance end symbol above ("before") a symbol     
or line on the instance axis, all symbols and lines below ("after")   
that object will be deleted. See Figure 114 below.                    
--------------------------------------------------------------------
Figure 114 : Placing an Instance End.Figure legend: Placing the instance end 
		symbolas shown would delete the messages M1 and M2 (but not M0). This is also true 
		whenadding a stop symbol. 
-----
(fig)  
       
       
       
       
-----

Adding an Instance End Symbol Automatically

To insert an instance end automatically:

  1. Select an object on the instance axis immediately below (after) or above (before) the desired endpoint, depending on the Insert Mode (see "Insert Options" on page 1334 in chapter 25, The MSC Editor).
  2. Double-click the instance end symbol in the symbol menu.
  3. The instance axis line is truncated and is connected to the instance end symbol.

Adding an Instance End Symbol Manually

To insert an instance end manually:

Drawing a Message

To draw a message you need to know from which instance it should be issued (the source instance) and to which instance it should be sent (the target instance).

Drawing a Message Automatically

To draw a message automatically:

  1. Depending on which insertion mode you have set, select the object on the source instance axis immediately above (before) or below (after) the place where you wish to draw the line.
  2. Double-click the message symbol in the symbol menu. The MSC editor inserts the base end of the message, with the target end of the message (the arrow) unconnected and facing left. (Figure 115)
    Figure 115 : A Message with its End Unconnected. 
    -----
    (fig)  
           
    -----
    
  3. Drag the target end to (or close to) the target instance axis and release the mouse button to connect the line.
  4. Terminate by filling the message name and its parameters.

Drawing a Message Manually

Drawing a message manually is performed with the following steps:

  1. Click the message symbol in the symbol menu.
  2. Move the pointer into the drawing area. Point at or close to the source instance axis. Click once. From now on, the base of the message is fixed to the source instance. The message is displayed as a dashed line, following the mouse motion. (See Figure 116).
    Figure 116 : The Message Base has been Connected. 
    -----
    (fig)  
           
    -----
    
  3. Point at or close to the target instance axis.
  4. Click to connect the message end to the target instance. The line is connected
  5. Terminate by filling the message name and message parameters.

Inserting the Message Name and Message Parameters

To enter the message name and the message parameter:

  1. The message name can be entered immediately.
  2. Click the parameter selection rectangle (the lower one) so that it is the only selected object. Type the parameter list. The brackets around the parameter list are not displayed on the screen until you have entered a parameter.
    Figure 117 : The Message Text Fields. 
    ------
    (fig)   
            
    ------
    

Changing the Status of a Message

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:

The MSC Editor displays these differences through the use of an asterisk located close to the message's ending arrow (see Figure 118).

To change the status of a message:

  1. Select the message.
  2. From the Edit menu, select the Status command. The message status dialog is issued:
    Figure 118 : Setting the Message Status. 
    -----
    (fig)  
           
    -----
    
  3. Turn the radio button of your choice on and click OK. The message's status is changed accordingly.

Drawing a Message-to-self

Drawing a message-to-self is done similarly to drawing a message. (See "Drawing a Message" on page 205.) The source instance is however always the same as the target instance.

-------------------------------------------------------------------
Note:                                                                
A message-to-self is always drawn to the left of the instance axis.  
-------------------------------------------------------------------

Adding a Condition symbol

A condition describes either a global system state referring to all instances contained in the MSC or a state referring to a subset of instances (a non-global condition). The minimum subset is a single instance.

For two MSCs, the second is a continuation of the first if its initial global condition is identical to the final global condition of the first. Identifying an intermediate global condition can be used when breaking down an MSC into two parts.

By means of non-global conditions, combinations of MSCs with different sets of instances can also be defined. The continuation then refers only to the common subset of instances.

The following general rule applies to the continuation of two MSCs (MSC1 and MSC2, with a non-empty common set of instances).

MSC2 is a continuation of MSC1 if, for each instance which both MSCs have in common:

Adding a Condition Symbol Automatically

To add a condition symbol automatically:

  1. Depending on which insert mode you have set (see "Insert Options" on page 1334 in chapter 25, The MSC Editor), select the object immediately above (before) or below (after) the place on the instance axis where you wish to insert the condition symbol.
  2. Double-click the condition symbol in the symbol menu.
  3. Type the condition name.
  4. Connect the condition to the instances of your choice. See"Connecting the Condition Symbol", below.

Adding a Condition Symbol Manually

  1. Select the condition symbol in the symbol menu.
  2. Position the symbol at the desired point of the instance axis. The symbol is placed on the instance axis, pushing down subsequent symbols on the instance axis when necessary.
  3. Type the condition name.
  4. Connect the condition to the instances of your choice. See"Connecting the Condition Symbol", below.

Connecting the Condition Symbol

In the MSC Editor you connect the condition symbol to individual instances or perform a global connection.

Figure 119 : A Condition Symbol.Figure legend: The condition symbol with name 
		Condition_nameis connected to the instances a and c, but not to the instance b. 
-----
(fig)  
       
       
       
-----
When a condition symbol straddles an instance axis to which it is not connected, the axis line is drawn through the symbol:

To connect a condition to a number of instance axes:

  1. Select the condition symbol to connect.
  2. Select the Connect menu choice under the Edit menu. The Connect dialog is presented:
    Figure 120 : Connecting an Instance. 
    -----
    (fig)  
           
    -----
    
  3. Select the instances to be connected in the instance list. The instances that will be connected are shown highlighted.
  4. Click the Connect button. The condition is redrawn according to the connection criteria you have specified.

Drawing a Timer

Drawing a timer is done similarly to drawing a message line. As for the message-to-self, the source instance is always the same as the target instance.

----------------------------------------------------------
Note:                                                       
A timer is always drawn to the right of the instance axis.  
----------------------------------------------------------

Drawing a Timer Automatically

To draw a timer automatically:

  1. Depending on which insertion mode you have set, select the object on the instance axis immediately above (before) or below (after) the place where you wish to draw the timer.
  2. Double-click the timer symbol in the symbol menu. The MSC editor inserts the base end of the timer with the target end of the line (the arrow) unconnected and facing right. The timer is drawn with an asterisk, which signifies that the timer has the status set. (Figure 115)
    Figure 121 : A Timer with its End Unconnected. 
    -----
    (fig)  
           
    -----
    
  3. Drag the target end and release the mouse when you have reached the point where the timer should expire.
  4. If required, change the status of the timer, using the Status command from the Edit menu.
  5. Terminate by filling the timer name and its parameters.

Drawing a Timer Manually

Drawing a timer manually is performed with the following steps:

  1. Click the timer symbol in the symbol menu.
  2. Move the pointer into the drawing area. Point at or close to the instance axis. Click once. From now on, the base of the timer is fixed. The timer is displayed as a dashed vertical line, following the mouse motion.
  3. Point at or close to the point on the axis where the timer should expire.
  4. Click to connect the timer end. The timer end is connected and the timer is assigned the status consumed.
  5. Terminate by filling the timer name and parameters.

Inserting the Timer Name and Timer Parameters

To enter the timer name and the timer parameter:

  1. The timer name can be entered immediately.
  2. Click the parameter selection rectangle (the lower one) so that it is the only selected object. Type the timer parameters. The brackets around the timer parameters are not displayed on the screen until you have filled their contents.
    Figure 122 : The Timer Text Fields. 
    -----
    (fig)  
           
    -----
    

Changing the Status of a Timer

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 page 207. The appearance of the timer is illustrated in Figure 123.

To change the status of a timer:

  1. Select the timer.
  2. From the Edit menu, select the Status command. The timer status dialog is issued.
    Figure 123 : Setting the Timer Status. 
    -----
    (fig)  
           
    -----
    
  3. Turn the radio button of your choice on and click OK. The timer's status is changed accordingly.

Adding an Action Symbol

An action symbol corresponds to the SDL task symbol. You may choose to fill it with formal or informal expressions.

Adding an Action Symbol Automatically

To add the action symbol automatically:

  1. Depending on which insert mode you have set (see "Insert Options" on page 1334 in chapter 25, The MSC Editor), select the object on the desired instance axis immediately above (before) or below (after) the place where you wish to insert the symbol.
  2. Double-click the action symbol in the symbol menu. The symbol is placed on the instance axis, pushing down subsequent symbols on the instance axis when necessary.
  3. Fill in the action text.

Adding an Action Symbol Manually

To add the action manually:

  1. Select the action symbol in the symbol menu.
  2. Move the mouse on (or close to) the desired instance axis line, at the desired position. When you have inserted the symbol, you can type the action text.

Drawing a Process Create

Drawing a Process Create Automatically

To draw a process create automatically you must first decide on how you want your created instances grouped in relation to the source instance.

The grouping mode allows you to choose how instances of created processes will be placed in relation to the source (or parent) instance. This feature is particularly useful when tracing a simulation in a message sequence chart. You can choose between three different modes:

You select the grouping mode with the Insert Options dialog in the Edit menu.

Figure 124 : Setting the Insert Options. 
-----
(fig)  
       
-----
To draw a process create line:

  1. Depending on which insert mode you have set, select the object on the source instance axis immediately above (before) or below (after) the place where you wish to draw the process create.
  2. Double-click the create process line in the symbol menu. The editor draws the create process line and places the instance head according to the insert mode and grouping mode that you have set.
  3. Terminate by entering the create parameters and the created instance head text fields (see Figure 112 on page 201).

Drawing a Process Create Line Manually

Drawing a process create is done similarly to drawing a message line:

  1. Click the process create symbol in the symbol menu.
  2. Move the pointer into the drawing area. The pointer is now displayed as a cross.
  3. Point at or close to the source instance axis. Click once. From now on, the base of the process create line is fixed to the source instance. The line is displayed as a dashed line, following the mouse motion. It can only be drawn horizontally.
  4. Point at the location where you wish to place the head of the created instance. Click to automatically draw the instance head and instance axis.
  5. Terminate by entering the create parameters and the created instance head text fields (see Figure 112 on page 201).

Adding a Stop Symbol

The stop symbol at the end of an instance body indicates the termination of that instance, as opposed to the instance end symbol, which only determines the end of the description of the instance within the MSC.

---------------------------------------------------------------------
Note:                                                                  
If you position the stop symbol above ("before") a symbol or line on   
the instance axis, all symbols and lines below ("after") that object   
will be deleted. See Figure 114 on page 204.                           
---------------------------------------------------------------------

Adding a Stop Symbol Automatically

To insert a stop symbol automatically:

  1. Select an object on the instance axis immediately below (after) or above (before) the desired endpoint, depending on the Insert Mode (see "Insert Options" on page 1334 in chapter 25, The MSC Editor).
  2. Double-click the stop symbol in the symbol menu.
  3. The instance axis line is truncated and is connected to the stop symbol.

Adding a Stop Symbol Manually

To insert a stop symbol manually:

Adding a Coregion Symbol

The coregion allows you to specify unordered events on an instance. A coregion covers for instance the practically important case of two or more incoming messages where the ordering of consumption may be interchanged.

To add a coregion symbol:

  1. Select the coregion symbol in the symbol menu.
  2. Point with the mouse to the instance axis where to add the symbol. Click once to designate the start point.
  3. Move the mouse to point to the location where you want the end point (on the same instance axis). Click a second time to designate the end point.

Moving Objects

You can move objects on the chart, one object at a time. The way that you do this differs slightly, depending upon the type of object. The various procedures are described below:

Moving a Text Symbol

The text symbol can be moved freely across the drawing area.

To move a text symbol:

Moving a Comment Symbol

The Comment symbol can be moved freely across the drawing area.

To move a comment symbol:

Moving an Instance Head Symbol

The instance head symbol can be moved horizontally or vertically.

To move an instance head:

Restrictions

The following restrictions apply when moving an instance head vertically:

Moving an Instance End Symbol

You can move the instance end symbol vertically but not horizontally. (Instead, you move the instance head or the instance axis connected to it.)

You can move the symbol vertically:

Moving an Instance Axis

You can move the instance axis line left or right by dragging it with the mouse. All connected messages and process create lines remain connected as they were initially. The instance head and instance end or stop symbols will be moved accordingly. See (1) and (2) in Figure 128.

Figure 128 : Moving Lines 
-----
(fig)  
       
-----
To move an instance axis:

Moving a Message

A message can be moved vertically to any position within the limits set by the instance head symbol and the instance end or stop symbol of the source and target instances).

The base and the end of the message remain connected to the original source and target instances. The related message name and message parameters will be moved accordingly. See (3) and (4) in Figure 128.

To move a message:

Moving the Base or End of a Message

You can move the base or end of a message up or down along the axis that it is connected to by pointing to and dragging the appropriate (base or end) selection square to the new position. The opposite selection square will remain fixed.

----------------------------------------------------------------
Note:                                                             
The end (message input) cannot be moved above the base (message   
output).                                                          
----------------------------------------------------------------

Moving a Messagetoself

You can move a messagetoself up or down along its instance axis by dragging it as you would move a message. See "Moving a Message", above.

Moving the Base or End of a Message-to-Self

Use the same procedure as for a message to move the end (message input) or base point (message output) of a message-to-self (see "Moving the Base or End of a Message", above).

Moving a Condition Symbol

You can move the condition symbol vertically along an instance axis to which it is connected; between the instance head and instance end, stop, or the bottom of the drawing area. To connect or disconnect instances to the symbol, use the Connect dialog on the Edit menu.

To move the condition symbol:

Moving a Timer

You can move a timer up or down along its instance axis by dragging it as you would move a message. The related timer name and parameters will be moved accordingly. See "Moving a Message", above.

Moving the Base or End of a Timer

Use the same procedure as for a message to move the end (the time-out or reset arrow) or base point (the set symbol) of a timer (see "Moving the Base or End of a Message", above).

Moving an Action Symbol

You can move the action symbol vertically along the instance axis between the instance head and instance end, stop or the bottom of the drawing area.

To move the action symbol:

  1. Point to the action symbol and press the mouse.
  2. Move the mouse to the new location on the instance axis and release the mouse. The symbol is redrawn at its new location.

Moving a Process Create

To move a process create line along its source instance axis you must move its instance head symbol upwards or downwards. See "Moving an Instance Head Symbol" on page 219

--------------------------------------------------------------
Note:                                                           
You cannot move only the dashed process create line. You must   
move the instance head.                                         
--------------------------------------------------------------

Moving a Stop Symbol

The stop symbol can be moved according to the same rules as for the instance end symbol. See "Moving an Instance End Symbol" on page 221.

Moving a Coregion Symbol

You can move a coregion up or down along its instance axis by dragging it as you would move a message. See "Moving a Message", above.

Moving the Start or End of a Coregion

If you point close to the start or end point of the coregion and start dragging the mouse, the coregion will be resized accordingly.

Reconnecting Objects

Some of the objects that are managed by the MSC Editor can be reconnected:

Reconnecting a Comment Symbol

A comment symbol can be reconnected to a different object or disconnected completely from all objects.

To reconnect the comment symbol:

  1. Select the comment symbol.
  2. Drag the connection handle towards the new connection point. The existing connection line is erased and a new line that follows the position of the mouse pointer is drawn.
  3. Once mouse motion has begun, you can release the mouse button.
  4. Click the connection point on the new object. The connection line is fixed to the new object.

Disconnecting the Comment Symbol

To disconnect the comment symbol:

Reconnecting a Message

You can reconnect the base or the end of a message to another instance axis. Proceed as follows (illustrated in Figure 129 and Figure 130 on page 227).

  1. Point to the base or end of the message.
    Figure 129 : Reconnecting a Message (1). 
    -----
    (fig)  
           
    -----
    
  2. Drag it towards the desired instance axis. As soon as you move the mouse the line is displayed in dashed form.
  3. When the mouse pointer is close to the new instance axis, release the mouse button. The message is now reconnected.
    Figure 130 : Reconnecting a Message (2, 3). 
    -----
    (fig)  
           
    -----
    

Reconnecting a Message-to-self

You can reconnect the base or end of a message-to-self to another instance axis. This changes the message-to-self to an ordinary message.

  1. Point to the end (or the base) of the message-to-self.
  2. Drag it away from the instance axis. As soon as you move the mouse, the line is displayed as a straight dashed line. Continue dragging the end of the line up or down to the new endpoint and release the mouse button.

Redirecting a Message

When you draw a message, the message goes from the source instance to the target instance. It is possible to redirect a message (i.e. change its direction):

  1. Select the message to redirect.
  2. Bring down the Edit menu and select the Redirect command. The message is redrawn in the opposite direction, and the text attributes are positioned accordingly, close to the message base.
    ------------------------------------------------------------------
    Note:                                                               
    Messages-to-self and overtaken messages cannot be redirected (see   
    Figure 131).                                                        
    ------------------------------------------------------------------
    
    Figure 131 : An Overtaken Message.Figure legend: The figure shows two 
    		messages.The message which is sent first is consumed after the message which is sent 
    		last,i.e. it is overtaken. 
    -----
    (fig)  
           
           
           
           
    -----
    

Reconnecting a Condition Symbol

To connect or disconnect instances to the symbol:

Reconnecting a Process Create

You can reconnect the base of a process create from one instance axis to another in a similar way as when reconnecting a message (see "Reconnecting a Message" on page 226).

--------------------------------------------------------------------
Note:                                                                 
You cannot, however, reconnect the end of the process create line     
that is connected to the header of the dynamically created instance.  
--------------------------------------------------------------------

Resizing Objects

Most of the objects that are managed by the MSC Editor have a fixed size that is assigned by the tool. Some objects can however be resized by the user:

Resizing a Text or Additional Heading Symbol

There are two methods of resizing the text and the additional heading symbol:

  1. Drag the lower right corner of the symbol (marked with a filled -in selection square) until you are satisfied with the new size.
  2. Double-click the symbol, which causes the symbol to toggle between its minimal and maximal size.
To restore a resized symbol to its full size (where all text is visible), simply double-click the symbol again.

Figure 132 : Minimizing and Resizing a Text or Additional Heading Symbol 
-----
(fig)  
       
       
-----
----------------------------------------------------------------------
Note:                                                                   
When all of the text within a text symbol is in view, the upper right   
corner looks like a piece of paper that has been folded. When any       
portion of the text within a text symbol cannot be seen (because the    
text symbol is too small), the upper right corner looks like it has     
been clipped.                                                           
----------------------------------------------------------------------

Resizing the Message Parameters, Timer Parameters and Process Create Parameters

You can toggle the size of a message, timer and process create parameters between their minimal and maximal size by double-clicking it. The size will be preserved between editor sessions.

When enlarged to its maximal size, the parameters are shown in their whole. When minimized, the MSC Editor will only show the first 10 characters of the first line of text.

Printing Objects

Individual objects can be printed using the Print command.

To print individual symbols:

  1. Select the objects to be printed.
  2. Order the Print command from the File menu.
  3. In the Print Dialog, click the setup button. Click on the Print only selected symbols button button to turn it on.
    Figure 133 : Printing Only Selected Objects. 
    -----
    (fig)  
           
    -----
    
  4. Adjust, if necessary other Print options and terminate by clicking the OK and Print buttons. See "Printing an MSC" on page 176 for more information.

Cutting, Copying and Pasting Objects

With the MSC Editor's clipboard, you may cut or copy a selection of objects. The selection may then be pasted to the same diagram or to other diagrams.

Cutting Objects

To cut objects:

  1. Select the objects.
    -----------------------------------------------------------------------
    Note:                                                                    
    If you are to cut an Instance head or Instance axis and want to paste    
    the instance, including the objects that are connected to the instance   
    (such as messages, timers, actions, conditions and so forth), you        
    must select all objects of to be pasted.                                 
    Selecting the instance only and cutting it will delete its connected     
    objects.                                                                 
    -----------------------------------------------------------------------
    
  2. Select the Cut option from the Edit menu and the selected objects together with their textual attributes are removed from the drawing area and copied to the clipboard awaiting further instruction (typically Paste).

Copying Objects

  1. Select the objects.
    ----------------------------------------------------------------------
    Note:                                                                   
    If you are to copy an Instance head or Instance axis and want to        
    paste the instance, including the objects that are connected to the in  
    stance (such as messages, timers, actions, conditions and so forth),    
    you must select all objects of to be pasted.                            
    ----------------------------------------------------------------------
    
  2. Select the Copy option from the Edit menu and the selected objects together with their textual attributes are removed from the drawing area and copied to the clipboard awaiting further instruction (typically Paste).

Pasting Objects

To paste objects:

  1. Copy or cut the objects to be pasted (see "Cutting Objects" and "Copying Objects" on page 232).
  2. If required, open the MSC where to paste the objects.
  3. Select the Paste option from the Edit menu.
  4. The clipboard contents appear in the drawing area, displayed in dashed form. Also, a dashed rectangle encloses the selection.
  5. Move the mouse pointer to a suitable location (the selection follows the mouse motion).
  6. Click the mouse. The selection is now pasted.
This page intentionally left blank


Footnotes

(1)
For instance, the MSC Editor takes full advantage of the message status when tracing a simulation.
(2)
Corresponding in this context means that both conditions refer to the same subset of instances and both conditions agree with respect to name.
 
Table of Contents Next Chapter