Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Query

Query 17 Jun 2004 06:06 #6699

Hi,
I have a query. I am new to TTCN.

Want some clarification in the following syntax

type port MyMessagePortType message {
in MsgType1, MsgType2;
out MsgType3;
inout integer
}


Plz let me know if my understanding is correct:
MyMessagePortType is defined to be of type "port" .
What is the role of message?

Regards,
Lavanya
The administrator has disabled public write access.

Query 17 Jun 2004 06:36 #6700

Hello Lavanya,

Lavanya LAKSHMAN wrote:

> Hi,
> I have a query. I am new to TTCN.
>
> Want some clarification in the following syntax
>
> type port MyMessagePortType message {
> in MsgType1, MsgType2;
> out MsgType3;
> inout integer
> }
>
> Plz let me know if my understanding is correct:
> MyMessagePortType is defined to be of type "port" .
> What is the role of message?

Your understanding is correct, you are defining a new port
type. Afterwards you use this port type when you define
components.

The "message" tells that the port is used for message-based
communication, i.e. "send" and "receive" are used.

For procedure-based communication, i.e. for "call", "getreply",
"catch", etc., "procedure" would be used.

Best regards,
Vesa-Matti

--
Vesa-Matti Puro
OpenTTCN Oy
E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it. * Tel.: +358 440396461 * Web: www.openttcn.com
The administrator has disabled public write access.

Query 17 Jun 2004 07:46 #6704

Hello Vesa,
Thanks for the quick response.
Regards,
Lavanya



"Vesa-Matti Puro
(OpenTTCN)"
<This email address is being protected from spambots. You need JavaScript enabled to view it.> To
Sent by: This email address is being protected from spambots. You need JavaScript enabled to view it.
"active_ttcn3 : cc
mts stf133 ttcn
version 3 - Subject
active members Re: Query
only"
<This email address is being protected from spambots. You need JavaScript enabled to view it..
ORG>


06/17/2004 12:06
PM


Please respond to
"active_ttcn3 :
mts stf133 ttcn
version 3 -
active members
only"
<This email address is being protected from spambots. You need JavaScript enabled to view it..
ORG>






Hello Lavanya,

Lavanya LAKSHMAN wrote:

> Hi,
> I have a query. I am new to TTCN.
>
> Want some clarification in the following syntax
>
> type port MyMessagePortType message {
> in MsgType1, MsgType2;
> out MsgType3;
> inout integer
> }
>
> Plz let me know if my understanding is correct:
> MyMessagePortType is defined to be of type "port" .
> What is the role of message?

Your understanding is correct, you are defining a new port
type. Afterwards you use this port type when you define
components.

The "message" tells that the port is used for message-based
communication, i.e. "send" and "receive" are used.

For procedure-based communication, i.e. for "call", "getreply",
"catch", etc., "procedure" would be used.

Best regards,
Vesa-Matti

--
Vesa-Matti Puro
OpenTTCN Oy
E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it. * Tel.: +358 440396461 * Web: www.openttcn.com
The administrator has disabled public write access.

Query 17 Jun 2004 20:29 #6719

Hello Lavanya,


>Hi,
>I have a query. I am new to TTCN.

You will love it!

>Want some clarification in the following syntax

>type port MyMessagePortType message {
>in MsgType1, MsgType2;
>out MsgType3;
>inout integer
>}


>Plz let me know if my understanding is correct:
> MyMessagePortType is defined to be of type "port" .

Not exactly. You are declaring a port type called
MyMessagePortType. "port" is NOT a type but a category of objects.

>What is the role of message?

That indicates that only messages rather than procedure calls
can be send and received on this port.

You will later in a component definition use this port type to
define a specific port:

MyMessagePortType theUSPostOffice;

This will enable you later to send and receive messages using the
folling syntax.

theUSPostOffice.send("hello there");

theUSPostOffice.receive(MyPayCheque);

Hope this is clear enough.

Thanks
Bernard Stepien
This email address is being protected from spambots. You need JavaScript enabled to view it.
Ottawa, Canada

Regards,
Lavanya
The administrator has disabled public write access.

Query 21 Jun 2004 07:19 #6720

In einer eMail vom 17/06/2004 07:27:49 GMT Daylight Time schreibt
This email address is being protected from spambots. You need JavaScript enabled to view it.:

Hi,
I have a query. I am new to TTCN.

Want some clarification in the following syntax

type port MyMessagePortType message {
in MsgType1, MsgType2;
out MsgType3;
inout integer
}


Plz let me know if my understanding is correct:
MyMessagePortType is defined to be of type "port" .
What is the role of message?

message indicates that you are using message type communication, as opposed
to procedure based communication.

Read the specification ES 201-873-1 (core notation) for further details.

Regards,

Claude.



Regards,
Lavanya




Claude Desroches email: This email address is being protected from spambots. You need JavaScript enabled to view it.
Solonplatz 3/2 phone: +49 30 9606 7986
13088 Berlin fax: +49 30 9606 7987
Germany
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin