Table of Contents
Previous Chapter
The public interface is made available to SDT users using two different mechanisms.
It is also used as a low level mechanism to physically integrate SDT with external tools. The PostMaster provides three basic facilities:
It is important to note that the interface provided could be extended for client-client usage outside SDT as long as the conventions described in this document are followed.
Services adopts the client-server concept where a request is sent by a client to a server, which returns with a reply. Service request and service reply take both advantage of message sending from one tool to another.
---------------------------------------------------
Service Servers Graphical
correspondence
---------------------------------------------------
Start Tool PostMaster Start a new tool
Get Tool Type PostMaster N/A
Get Tool Pid PostMaster N/A
Add Tool PostMaster N/A
Add Tool Subscription PostMaster N/A
---------------------------------------------------
-----------------------------------------
Service Servers Graphical
correspondence
-----------------------------------------
Start MSC Log PostMaster N/A
Stop MSC Log PostMaster N/A
-----------------------------------------
-------------------------------------------------------
Service Servers Graphical
correspondence
-------------------------------------------------------
Show SDT Source Organizer Show source menu choice
Obtain GR Reference SDLE N/A
MSCE
-------------------------------------------------------
------------------------------------------------------ Service Servers Graphical correspondence ------------------------------------------------------ List System Files Organizer N/A Open System Organizer Open quick button Save System Organizer Save quick button ------------------------------------------------------
------------------------------------------------------
Service Servers Graphical correspondence
------------------------------------------------------
Load Diagram SDLE Open diagram menu choice
MSCE
Unload Diagram SDLE Close diagram menu choice
MSCE
Save Diagram SDLE Save diagram menu choice
MSCE
Create SDL Diagram SDLE New diagram menu choice
MSCE
Create MSC Dia SDLE New diagram menu choice
gram MSCE
------------------------------------------------------
----------------------------------------------------
Service Servers Graphical correspondence
----------------------------------------------------
Select Object SDLE Selecting an object
MSCE
Insert SDL Object SDLE Select object in symbol
menu
Insert MSC Object MSCE Select object in symbol
menu
Remove Object SDLE Clear menu choice
MSCE
Show Object SDLE Selecting an object
MSCE
----------------------------------------------------
---------------------------------------------------
Service Servers Graphical correspondence
---------------------------------------------------
Add Menu SDLE N/A
MSCE
Delete Menu SDLE N/A
MSCE
Clear Menu SDLE N/A
MSCE
Add Item to Menu SDLE N/A
MSCE
---------------------------------------------------
---------------------------------------------------
Service Servers Graphical correspondence
---------------------------------------------------
Display Key SDLE N/A
MSCE
List Key SDLE N/A
MSCE
Create Attribute SDLE N/A
MSCE
Read Attribute SDLE N/A
MSCE
Update Attribute SDLE N/A
MSCE
Delete Attribute SDLE N/A
MSCE
---------------------------------------------------
------------------------------------------------------------
Service Servers Graphical correspondence
------------------------------------------------------------
Load Definition File Information N/A
Server
------------------------------------------------------------
------------------------------------------------------------------
Item Description
------------------------------------------------------------------
Tools Use values in steps of 1000
Service Request Base the value on the tool providing the service
and add local base of 100. Then sequentially
number the services
Service Reply Base the value on the corresponding service
request and add 100.
Notifications Base the value on the tool broadcasting the noti
fication. and add the messages sequentially.
------------------------------------------------------------------
The client could choose whether to wait for the reply message (emulating a remote procedure call) or to continue working and intercept the reply message via a callback routine.
The client does not need to subscribe on service request messages or service reply messages. However the client itself must be present in the configuration list.
A server can only process one service at time. If additional services are requested from that particular server when being occupied processing the first service, the server is said to be busy and a service error reply is returned to the requester. Other kinds of messages received by server during the processing of a service request are queued up and will be processed as soon as the service has completed.
------------------------------------------------------------------
Status Code Value Description
------------------------------------------------------------------
OK 0 The service was successfully processed.
Optional parameters are provided in the
reply message.
Busy 1 The server is busy and cannot process the
service. The service request is aborted. An
additional message might be provided.
ErrorString 2 The server failed to process the service.
The remaining parts of the message contain
an error message.
ErrorCode 3 The server failed to process the service, the
next parameter in the service reply is a
code indicating the error.
------------------------------------------------------------------
In the detailed description of each service, the reply format is only specified for the normal case returning OK. For services replying errors in the ErrorString format, the text may be context sensitive and only major error causes are specified.
Bad parameters Server busy Service not supported Server locked
Reference must contain paranthesis Reference must start with #SDTREF Invalid reference Garbage after reference Embedded value not terminated Illegal value in paranthesis after token <token-nr> Junk after embedded value Incomplete reference lacking trailing paranthesis Unsupported reference type <token> Symbol must be integer >= 0 Malformed coordinateFor a reference to the syntax of references, see chapter 41, References in SDT-3.
-----------------------------------------------------------------
Type Description
-----------------------------------------------------------------
integer 32 bit integer in ASCII form.
bool Logical. True = 1, False = 0
string ASCII string.
QuotedString ASCII string surrounded by double quotes (i.e.
"The string"). If a quote character appears in the
string it is proceeded by a backslash. (`\'). An
empty string is also double quoted ("").
ByteString Byte string. Is always preceded by an attribute
telling the length of the byte string.
-----------------------------------------------------------------
The service request is presented in a table of service parameters, with the appearance below. The parameters must appear in the order they are listed in the table. Usually, a parameter cannot be omitted. If it is optional, this is explicitly mentioned.
----------------------------------------------------------- Parameter Type Description ----------------------------------------------------------- symbolic parameter Brief description of the parameters. parameter type name -----------------------------------------------------------
The table below is similar to the service request parameter table above. A service reply always contains a status code in the first parameter. Additional parameters are only valid if the status code was OK (0).
----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
The Service adds "-post" to the argv[1] variable.
The parameters are recognized by the started tool in the argv[] variable starting from index 2.
The started tool inherits the environment used by the PostMaster.
The service behaves somewhat differently from other services since it is performed both in the PostMaster and in the PostMaster library in the started tool. The service is initiated in the PostMaster creating the new tool, but the service is recognized to be completed when the started tool calls the PostMaster function SPInit. This call causes a SESTARTNOTIFY message to be sent. This message is recognized by the PostMaster which upon reception of the SESTARTNOTIFY also sends a SESTARTREPLY to the issues of the start service.
The service is also different in its nature since it will cause a time-out to expire if the started tool does not call the SPInit function within a certain time limit.
The started tool must have an entry in the PostMaster configuration and the associated file containing the tool to start must exist.
The service will return to the caller:
Figure 563 : Protocol to Start a Tool.
-----
(fig)
-----
SET_POST
SESTART
-------------------------------------------------------------
Parameter Type Description
-------------------------------------------------------------
toolType integer Tool type to be started
params string Optional.
Parameters for the started tool. More
than one parameter allowed. If sepa
rated with blanks, each item will be
inserted into the argv[] string list for
the started application. The PostMaster
will add a parameter -post as the first
parameter in the argv[] list.
-------------------------------------------------------------
SESTARTREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
No such tool Max instances of tool Already started File not found + Operating System file access and process creation error messages
-----------------------------------------------------------
Notification Description
-----------------------------------------------------------
SESTARTNOTIFY Broadcasted by the started application when
calling SPInit.
-----------------------------------------------------------
SET_POST
SEGETTOOLTYPE
-------------------------------------------------------------
Parameter Type Description
-------------------------------------------------------------
pId integer A pId identifying the tool type of which
the corresponding type is wanted.
-------------------------------------------------------------
SEGETTOOLTYPEREPLY
--------------------------------------------------------------
Parameter Type Description
--------------------------------------------------------------
status integer Service reply status.
toolType integer The type of tool. If the requested pid is
not found, toolType 0 is returned
--------------------------------------------------------------
SET_POST
SEGETTOOLPID
-------------------------------------------------------------
Parameter Type Description
-------------------------------------------------------------
toolType integer An identifier for the tool type of which
the corresponding pid(s) are wanted.
-------------------------------------------------------------
SEGETTOOLPIDREPLY
-------------------------------------------------------------
Parameter Type Description
-------------------------------------------------------------
status integer Service reply status.
noOfPid integer Number of pid values corresponding to
the toolType. If the requested tool
type was not found in the configuration,
noOfPid is set to 0.
pId integer A pid value corresponding to
toolType
-------------------------------------------------------------
SET_POST
SEADDTOOL
------------------------------------------------------------
Parameter Type Description
------------------------------------------------------------
toolType integer An identifier for the tool. Should be a
value within the allowed range.
filename string The filename of the executable tool.
Should be a pure filename and must
not include a directory path. The file
should be stored on a directory that is
included in the directories designated
by the environment variable POSTPATH.
------------------------------------------------------------
SEADDTOOLREPLY
------------------------------------------------------------
Parameter Type Description
------------------------------------------------------------
status integer Service reply status.
exist bool Returns false if the tool was inserted,
true if it already existed.
------------------------------------------------------------
Operation failed
SET_POST
SEADDTOOLSUBSCRIPTION
-----------------------------------------------------------
Parameter Type Description
-----------------------------------------------------------
tooltype integer The tool type to which a message sub
scription should be added.
message integer The message to add to the subscription
list.
-----------------------------------------------------------
SEADDTOOLSUBSCRIPTIONREPLY
---------------------------------------------------------
Parameter Type Description
---------------------------------------------------------
status integer Service reply status.
exist bool Returns false if the message was
inserted, true if it already existed.
---------------------------------------------------------
No such tool Operation failed
SET_POST
SESTARTTRACE
----------------------------------------------------------
Parameter Type Description
----------------------------------------------------------
filename string The name of the file on which the log
should be stored. If the parameter is
omitted, the default log file post.mpr
will be used.
----------------------------------------------------------
SESTARTTRACEREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
SET_POST
SESTOPTRACE---------------------------- Parameter Type Description ---------------------------- - - N/A. ----------------------------
SESTOPTRACEREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
SET_ORGANIZER
SESHOWREF----------------------------------------- Parameter Type Description ----------------------------------------- SDTRef string A valid SDT reference. -----------------------------------------
SESHOWREFREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
SDT Reference Errors
--------------------------------------------------------------
Notification Description
--------------------------------------------------------------
SELOADNOTIFY If any Editor loaded the required diagram.
SELOADSDLNOTIFY If the SDL Editor loaded the required dia
gram.
SESHOWNOTIFY If the diagram to show was not loaded in the
editor.
SESTARTNOTIFY If the Editor was started.
--------------------------------------------------------------
SET_ORGANIZER
SELISTSYSTEMFILES---------------------------- Parameter Type Description ---------------------------- - - N/A. ----------------------------
SELISTSYSTEMFILESREPLY
---------------------------------------------------------------
Parameter Type Description
---------------------------------------------------------------
status integer Service reply status.
file(s) string A list of files, with a complete directory
path. Each file specification is ended by
a newline.
---------------------------------------------------------------
SET_ORGANIZER
SEOPEN
-------------------------------------------------------
Parameter Type Description
-------------------------------------------------------
filename string The system file to open.
forceQuit bool If true, quit modified diagrams. If
false and modified diagram(s)
exist(s), the service is denied.
-------------------------------------------------------
SEOPENREPLY
--------------------------------------------------------------
Parameter Type Description
--------------------------------------------------------------
status integer Service reply status.
toolType integer The type of tool. If the requested pid is
not found, toolType 0 is returned.
--------------------------------------------------------------
Service request denied. No license available Cannot open, system modified Error opening system A message box displays the error
SET_ORGANIZER
SESAVEALL
---------------------------------------------------------
Parameter Type Description
---------------------------------------------------------
systemStructureOnly bool If true, only the system struc
ture is saved.
---------------------------------------------------------
SESAVEALLREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
Service request denied. No license available Error save all A message box displays the error
An buffer id is returned when an existing diagram is successfully loaded in an Editor or a new diagram is created and implicitly loaded in the Editor. Then, most services manipulating diagrams in Editors, refer to the buffer containing the diagram via the buffer id.
SET_SDLE SET_MSCE
SEOBTAINGRREF---------------------------- Parameter Type Description ---------------------------- - - N/A ----------------------------
SEOBTAINGRREFREPLY--------------------------------------------------- Parameter Type Description --------------------------------------------------- status integer Service reply status. NoOfRef integer The number of references found. ref* string A complete SDT reference. ---------------------------------------------------
SDT Reference Errors Illegal use of qualifier Illegal reference type
SET_SDLE SET_MSCE
SELOADDIAGRAM
-----------------------------------------------------------
Parameter Type Description
-----------------------------------------------------------
filename string The diagram file to load specified with
the full directory path.
-----------------------------------------------------------
SELOADDIAGRAMREPLY
------------------------------------------------------------
Parameter Type Description
------------------------------------------------------------
status integer Service reply status.
bufId integer Refers to an allocated buffer in the Edi
tor.
type integer The type of diagram.
name string The name of the loaded diagram.
------------------------------------------------------------
Can not read file <filename> <error message> SDLE is busy, syntax error in text (SDLE only)
--------------------------------------------------- Notification Description --------------------------------------------------- SELOADNOTIFY If the diagram was loaded. SELOADSDLNOTIFY Only if an SDL diagram was loaded. ---------------------------------------------------
SET_SDLE SET_MSCE
SEUNLOAD
----------------------------------------------------------------
Parameter Type Description
----------------------------------------------------------------
bufId integer Refers to a buffer in the Editor.
forceUnload bool If true, the Editor will force a modified
diagram to be unloaded. If false, the
Editor will not unload the diagram if it
is modified.
----------------------------------------------------------------
SEUNLOADREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
Invalid diagram buffer id Diagram is changed If force Unload is false SDLE is busy, syntax error in text SDLE only
-------------------------------------------- Notification Description -------------------------------------------- SEUNLOADNOTIFY If the diagram was unloaded. --------------------------------------------
SET_SDLE SET_MSCE
SEHSHOW
-------------------------------------------------------------
Parameter Type Description
-------------------------------------------------------------
bufId integer Refers to a buffer in the editor.
pageName QuotedString Name of the page to show. If the
string is empty, the last recently
used, or if no such page exist, the
default page will be shown.
Only applicable to SDL diagrams.
For MSC diagrams this parameter
may be omitted or left empty.
-------------------------------------------------------------
SESHOWREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
Invalid diagram buffer id Unable to open page SDLE only SDLE is busy, syntax error in text SDLE only
---------------------------------------- Notification Description ---------------------------------------- SESHOWNOTIFY If the diagram was raised. ----------------------------------------
SET_SDLE SET_MSCE
SESAVE------------------------------------------------------ Parameter Type Description ------------------------------------------------------ bufId integer Refers to a buffer in the Editor. filename string The file where to save the buffer. ------------------------------------------------------
SESAVEREPLY
----------------------------------------------------------
Parameter Type Description
----------------------------------------------------------
status integer Service reply status.
toolType bool Returns true if the buffer was success
fully saved.
----------------------------------------------------------
Invalid diagram buffer Id Diagram is new. Filename is missing. Cannot save file <filename> <error message> SDLE is busy, syntax error in text (SDLE only)
--------------------------------------- Notification Description --------------------------------------- SESAVENOTIFY If the diagram was saved. ---------------------------------------
SET_SDLE
SESDLCREATE
------------------------------------------------------------
Parameter Type Description
------------------------------------------------------------
virtuality integer Kind of virtuality. Only applica
ble to typed diagrams. Other dia
grams should use the value
NOVIRTUAL Possible values are:
NOVIRTUAL
VIRTUAL
REDEFINED
FINALIZED
These values are defined in
sdtsym.h
DiagramType integer Diagram type. See sdtsym.h for
valid diagram types.
name string Diagram name.
qualifier QuotedString SDL qualifier. Could be empty.
pageType integer Type of the first page in the dia
gram. See sdtsym.h for valid
page types. Note that the
pageType must correspond with
the diagramType.
pageName QuotedString Name of the first page in the dia
gram.
------------------------------------------------------------
SESDLCREATEREPLY----------------------------------------------------- Parameter Type Description ----------------------------------------------------- status integer Service reply status. bufId integer Refers to a buffer in the editor. -----------------------------------------------------
SDLE is busy, syntax error in text
------------------------------------------------------- Notification Description ------------------------------------------------------- SESDLCREATENOTIFY As a result of creating the diagram. SESDLPAGENOTIFY As a result of creating a page. -------------------------------------------------------
SET_MSCE
SEMSCCREATE------------------------------------------------- Parameter Type Description ------------------------------------------------- name string Name of the diagram to create. -------------------------------------------------
SEMSCCREATEREPLY----------------------------------------------------- Parameter Type Description ----------------------------------------------------- status integer Service reply status. bufId integer Refers to a buffer in the editor. -----------------------------------------------------
------------------------------------------------------- Notification Description ------------------------------------------------------- SEMSCCREATENOTIFY As a result of creating the diagram. -------------------------------------------------------
SET_SDLE SET_MSCE
SESELECTOBJECT
-----------------------------------------------------------
Parameter Type Description
-----------------------------------------------------------
bufId integer Buffer referencing the diagram in
which an object should be shown.
row integer The row where to put the text
cursor.
column integer The column where to put the text
cursor in the row.
keepSelections bool Flag indicating if old selections
should be kept.
-----------------------------------------------------------
SESELECTOBJECTREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
Invalid diagram buffer id Invalid object id SDLE is busy, syntax error in text (SDLE only)
SET_SDLE SET_MSCE
SESHOWOBJECT
------------------------------------------------------
Parameter Type Description
------------------------------------------------------
bufId integer Buffer referencing the diagram in
which an object should be shown.
objectId integer Identifier to the object to show.
------------------------------------------------------
SESHOWOBJECTREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
Invalid diagram buffer id Invalid object id SDLE is busy, syntax error in text (SDLE only)
SET_SDLE
SESDLINSERTOBJECT
------------------------------------------------------------
Parameter Type Description
------------------------------------------------------------
bufId integer Buffer in which to insert the
object.
pageName string Page to insert the object on.
shiftIsDown bool Emulate behavior of having shift
pressed when inserting an sym
bol.
objectType integer Type of object. Valid objects
depend on the type of diagram
and if syntax checking is on. Cor
responds to available symbols in
the editor symbol menu.
NOTE: SDL reference symbols
are not possible to add using
this service.
Definitions of symbols are found
in sdtsym.h.
objectText QuotedString Text in object.
------------------------------------------------------------
SESDLINSERTOBJECTREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
Invalid diagram buffer id Invalid object id A reference symbol containing text\ cannot be inserted in diagram <diagram> Object type <objectType> is not allowed\ in diagram <diagram> Unable to open page The page is too small to insert the object SDLE is busy, syntax error in text
For a full specification of how to specify the object to insert, the specification of Message Sequence Charts Z.120 should be consulted or the document "MSC Trace and Log Format 2.0 Specification" available from Telelogic.
SET_MSCE
SEINSERTOBJECT
------------------------------------------------------------
Parameter Type Description
------------------------------------------------------------
bufId integer Buffer in which to insert
the object.
afterObject integer Only object id 0 is
allowed, and adds the
object as the last object.
objectDescription QuotedString Description of the object
to insert. The description
should be in accordance
with Z.120 using event
oriented PR. Only one
object at the time can be
inserted.
------------------------------------------------------------
SEINSERTOBJECTREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. objectId integer Identifier to object. -----------------------------------------
Invalid diagram buffer id Errors from parsing objectDescription
SET_SDLE SET_MSCE
SEREMOVEOBJECT
------------------------------------------------------
Parameter Type Description
------------------------------------------------------
bufId integer Buffer referencing the diagram in
which an object should be removed.
objectId integer The object to remove.
------------------------------------------------------
SEREMOVEOBJECTREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
Invalid diagram buffer id Invalid object id Object can not be removed (MSCE only)
The intention is to have an external tool configure an SDT tool in order to provide the necessary UI. SDT tools could also take advantage of these dynamic menus; for instance a Simulator UI could configure an SDL editor to serve as extended Simulator UI, where breakpoints can be set on symbols.
The following operations are available through a set of well defined PostMaster messages:
SET_SDLE SET_MSCE
SEMENUADD------------------------------------------------- Parameter Type Description ------------------------------------------------- menuName QuotedString Name of the menu to add. -------------------------------------------------
SEMENUADDREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
SET_SDLE SET_MSCE
SEMENUDELETE---------------------------------------------------- Parameter Type Description ---------------------------------------------------- menuName QuotedString Name of the menu to delete. ----------------------------------------------------
SEMENUDELETEREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
SET_SDLE SET_MSCE
SEMENUCLEAR--------------------------------------------------- Parameter Type Description --------------------------------------------------- menuName QuotedString Name of the menu to clear. ---------------------------------------------------
SEMENUCLEARREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
The following format codes are recognized.
-----------------------------------------------------------------
Format code Description
-----------------------------------------------------------------
%a The absolute name of the file associated with the
selected object. Extracted from the SDT reference.
%b The absolute name of the file associated to the win
dow.
%c If the selected object uses extended data, the com
ment is extracted.
%d If the selected object uses extended data, the data
part is extracted.
%e The text in the object. (Only in the SDL Editor)
%f The name of the file that contains the object.
%g The SDT reference to the object.
%p The page name currently shown in the window.
%s The name of the file shown in the window.
%t The page name for the object. Extracted from the
SDT reference.
-----------------------------------------------------------------
SET_SDLE SET_MSCE
SEMENUADDITEM
-------------------------------------------------------------
Parameter Type Description
-------------------------------------------------------------
menuName QuotedString The menu in which an item
should be added.
menuItem QuotedString Name of QuotedString item
to add.
separator bool If a separator should precede
the item
statusText QuotedString The status text to show when
the menu item is selected.
ProprietaryKey integer The keys ProprietaryKey
and AttributeKey are used
to determine whether or not a
menu choice should be avail
able (i.e. dimmed or not).
AttributeKey integer See description of Propri
etaryKey.
scope integer This attribute should be one
of the following:
ALWAYS (0)
The menu choice will
always be available, inde
pendently of the selection
in the tool's active win
dow. The keys Propri
etaryKey and
AttributeKey are han
dled as don't care.
ONE_SELECTED_OBJECT(a)
(1)
The menu choice is avail
able only if exactly one
object is selected. The
keys ProprietaryKey
and AttributeKey are
handled as don't care.
MATCHING_KEYS (2)
The menu choice is avail
able only if at least one of
the selected objects has an
attribute that matches the
keys above
MATCHING_KEYS_ONE_SELEC
TED_OBJECT (3)(b)
The menu choice is avail
able only if exactly one
object is selected and it
has an attribute that
matches the keys above
confirmText QuotedString If no text is provided, no con
firmation is assumed. A non-
empty text denotes confirma
tion, a two button dialog will
be issued with the choices OK
and Cancel. The dialog text is
defined in confirmText.
actionType integer The value controls the last
part of the message which is
variant.
0 = PostMaster message
1 = OS command.
-------------------------------------------------------------
--------------------------------------------------------------
Parameter Type Description
--------------------------------------------------------------
message integer Interpreted as the PostMaster mes
sage to send.
params QuotedString Interpreted as the parameters to the
PostMaster message. Context sen
sitive format codes are evaluated,
see the Service description.
--------------------------------------------------------------
-------------------------------------------------------------
Parameter Type Description
-------------------------------------------------------------
OSblock bool Whether to wait for the command to
finish before giving control to the
user.
OScommand QuotedString The OS command to perform. Con
text sensitive format codes are eval
uated, see the Service description.
-------------------------------------------------------------
SEMENUADDITEMREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
Figure 564 : Extending the Attributes Associated to a Symbol.Figure legend:
Theobject can have any number of attributes associated to it, not necessarily 2
asillustrated. The number of extended data attributes is arbitrary.
-----
(fig)
-----
An object is potentially any item that is handled as a source component by SDT, or any of the sub-components of which it consists. Objects are thus:
SET_SDLE SET_MSCE
SEDISPLAYKEY
----------------------------------------------------------
Parameter Type Description
----------------------------------------------------------
ProprietaryKey integer See the introductory descrip
tion.
AttributeKey integer See the introductory descrip
tion.
SDTRef QuotedString See the introductory descrip
tion.
----------------------------------------------------------
SEDISPLAYKEYREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
SDT Reference Errors
SET_SDLE SET_MSCE
SELISTKEY
---------------------------------------------------
Parameter Type Description
---------------------------------------------------
ProprietaryKey integer See the introductory
description.
AttributeKey integer See the introductory
description.
SDTRef QuotedString See the introductory
description.
---------------------------------------------------
SELISTKEYREPLY--------------------------------------------------- Parameter Type Description --------------------------------------------------- status integer Service reply status. NoOfKeys integer Number of matching keys. SDTRef+ QuotedString A list of SDT references. ---------------------------------------------------
SDT Reference Errors
SET_SDLE SET_MSCE
SECREATEATTRIBUTE
--------------------------------------------------------------
Parameter Type Description
--------------------------------------------------------------
ProprietaryKey integer A key that allows the external
user / tool to distinguish his
extensions from other users' /
tools'.
AttributeKey integer A key that allows the external
user / tool to classify his own
extension.
SDTRef QuotedString A valid SDT reference identi
fying the object.
datainterpret integer Defines how data is to be
interpreted. The following
values are recognized:
Should be set to 0.
comment QuotedString An explanatory (readable)
comment.
MenuChoice QuotedString The name of the pop-up
menu choice that will be
appended to the tool's pop-up
menu, upon selection of the
symbol.
dataLen integer Length of data.
data ByteString The user's data. A byte string
from SDT's point of view.
--------------------------------------------------------------
SECREATEATTRIBUTEREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
SDT Reference Errors Error in match
SET_SDLE SET_MSCE
SEUPDATEATTRIBUTE
----------------------------------------------------------
Parameter Type Description
----------------------------------------------------------
ProprietaryKey integer A key that allows the
external user / tool to dis
tinguish his extensions
from other users' / tools'.
AttributeKey integer A key that allows the
external user / tool to clas
sify his own extension.
SDTRef QuotedString A valid SDT reference
identifying the object.
datainterpret integer Defines how data is to be
interpreted. The following
values are recognized:
Should be set to 0.
comment QuotedString An explanatory (readable)
comment.
MenuCchoice QuotedString The name of the pop-up
menu choice that will be
appended to the tool's pop-
up menu, upon selection of
the symbol.
dataLen integer Length of data.
data ByteString The user's data. A byte
string from SDT's point of
view.
----------------------------------------------------------
SEUPDATEATTRIBUTEREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
SDT Reference Errors Error in match
SET_SDLE SET_MSCE
SEREADATTRIBUTE
----------------------------------------------------------
Parameter Type Description
----------------------------------------------------------
ProprietaryKey integer See the introductory descrip
tion.
AttributeKey integer See the introductory descrip
tion.
SDTRef QuotedString See the introductory descrip
tion.
----------------------------------------------------------
SEREADATTRIBUTEREPLY
-------------------------------------------------------------
Parameter Type Description
-------------------------------------------------------------
status integer Service reply status.
DataInterpret integer Type of data, always 0.
comment QuotedString Comment text.
MenuChoice QuotedString The defined menu choice.
dataLen integer Length of binary data.
data ByteString Data associated to the extended
attribute.
-------------------------------------------------------------
SDT Reference Errors Error in match
SET_SDLE SET_MSCE
SEDELETEATTRIBUTE
----------------------------------------------------------
Parameter Type Description
----------------------------------------------------------
ProprietaryKey integer See the introductory descrip
tion.
AttributeKey integer See the introductory descrip
tion.
SDTRef QuotedString See the introductory descrip
tion.
----------------------------------------------------------
SEDELETEATTRIBUTEREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
SDT Reference Errors More than one object match the search No object match the search
The Information Server could read any ASCII file, but for efficient usage, the format of the files should contain one signal definition per line.
SET_INFOSERVER
SELOADDEFINITIONMAP
-----------------------------------------------------------
Parameter Type Description
-----------------------------------------------------------
fileName string Name of the file to load.
tag integer Is used to either add or remove a file.
0 = Add definition
1 = Remove definition.
-----------------------------------------------------------
SELOADDEFINITIONMAPREPLY----------------------------------------- Parameter Type Description ----------------------------------------- status integer Service reply status. -----------------------------------------
File already added File was not added before
To receive a notification one must subscribe on that particular notification (or on all notifications). This is accomplished either statically, by an entry in an additional configuration file, or dynamically by the SDT services Add Tool and Add Tool Subscription.
-------------------------------------- Message Description -------------------------------------- SESTARTNOTIFY When a tool is started. SESTOPNOTIFY When a tool is stopped. --------------------------------------
------------------------------------------------ Message Description ------------------------------------------------ SELOADNOTIFY When a diagram is loaded. SEUNLOADNOTIFY When a diagram is unloaded. SEDIRTYNOTIFY When a diagram becomes modified. SESAVENOTIFY When a diagram is saved. SESDLNEWNOTIFY When an SDL diagram is created. SEMSCNEWNOTIFY When an MSC diagram is created. ------------------------------------------------
The started tool
SESTARTNOTIFY
------------------------------------------------------------
Parameter Type Description
------------------------------------------------------------
toolType integer The kind of tool that was started.
argv0 string The filename (with a complete path) of
the started tool as obtained by reading
argv[0].
------------------------------------------------------------
The tool which stops
SESTOPNOTIFY-------------------------------------------------- Parameter Type Description -------------------------------------------------- toolType integer The kind of tool that stopped. --------------------------------------------------
SET_SDLE SET_MSCE
SELOADNOTIFY--------------------------------------------------------- Parameter Type Description --------------------------------------------------------- bufId integer Buffer id of the loaded diagram. fileName string Name of the loaded file. diagramType integer Diagram type of the loaded diagram. diagramName string Diagram name of the loaded diagram. ---------------------------------------------------------
SET_SDLE SET_MSCE
SEUNLOADNOTIFY------------------------------------------------------ Parameter Type Description ------------------------------------------------------ bufId integer Buffer id of the unloaded diagram. ------------------------------------------------------
SET_SDLE SET_MSCE
SEDIRTYNOTIFY--------------------------------------------------------------- Parameter Type Description --------------------------------------------------------------- bufId integer Buffer id of the diagram that became dirty. ---------------------------------------------------------------
SET_SDLE SET_MSCE
SESAVENOTIFY
----------------------------------------------------------
Parameter Type Description
----------------------------------------------------------
bufId integer Buffer id of the saved diagram.
fileName string The filename in which the diagram was
saved.
----------------------------------------------------------
SET_SDLE
SESDLNEWNOTIFY
---------------------------------------------------------------
Parameter Type Description
---------------------------------------------------------------
bufId integer Buffer id of the new diagram.
virtuality string Kind of virtuality
diagramType integer Type of diagram.
diagramName string Name of the diagram.
qualifier QuotedString A qualifier for the new diagram.
The qualifier is not a full quali
fier, since it does not include the
diagram path to the root dia
gram.
---------------------------------------------------------------
SET_MSCE
SEMSCNEWNOTIFY--------------------------------------------------- Parameter Type Description --------------------------------------------------- bufId integer Buffer id of the new diagram. diagramName string Name of the new diagram. ---------------------------------------------------
The PIds consist of a UNIX PId (an integer) and an SDL process instance number (a hex number), which normally is used only in comparisons. The PIds may be used to uniquely identify a single receiver if several receivers exist, but can be ignored if only two tools are communicating
SET_SDLENV
SESDLSIGNAL
-------------------------------------------
Parameter Type Description
-------------------------------------------
signalName integer SDL name of
the sent signal
globalReceiverPid integer See above.
localReceiverPid string See above.
globalSenderPid integer See above.
localsenderPid string See above.
signalParam string Sea above.
-------------------------------------------
SET_POST
SEOPFAILED
---------------------------------------------------------------
Parameter Type Description
---------------------------------------------------------------
message integer The message causing the error.
severity integer Kind of error.
pid integer The PId of the subscriber (if a spe
cific subscriber was involved).
errorCode integer The error itself.
messageParam string The remaining information is the
data (or the first part of the data) of
the message causing the error.
---------------------------------------------------------------
Table of Contents
Next Chapter