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

TOPIC: Confused about map / TCI / TRI

Confused about map / TCI / TRI 17 Dec 2008 14:25 #7489

I'm trying to understand how sending to a mapped ports works at the
run-time level. Say, I do this:

map(PTC:p1, system:p2)
p1.send("hello")

Does the TE have resolve the mapping from p1 to p2, i.e. call triSend on
p2? Alternatively, the TE would call tciSend on p1, then CH would
resolve the mapping and then call triSend on p2.

On a related note, can the TTCN-3 program send directly to system:p2 at
all:

p2.send("hello")

or does it need to go through PTC:p1?

--
Regards,
Mike
The administrator has disabled public write access.

Confused about map / TCI / TRI 17 Dec 2008 17:20 #7490

Dear Michael,

> Does the TE have resolve the mapping from p1 to p2,
Yes. The port referenced in triSend relates to the system port mapped to
the component port used in the send statement. In addition you are able
to determine from which component the send has originated.

The CH plays no role when talking about mapped ports.
> On a related note, can the TTCN-3 program send directly to system:p2
> at all:
No, this is not possible. A component can only send to and receive from
it's own ports. So in your wording: it needs to go through PTC:p1.

Merry Chrismas.

Best regards,
Theo


Michael Sperber schrieb:
> I'm trying to understand how sending to a mapped ports works at the
> run-time level. Say, I do this:
>
> map(PTC:p1, system:p2)
> p1.send("hello")
>
> Does the TE have resolve the mapping from p1 to p2, i.e. call triSend on
> p2? Alternatively, the TE would call tciSend on p1, then CH would
> resolve the mapping and then call triSend on p2.
>
> On a related note, can the TTCN-3 program send directly to system:p2 at
> all:
>
> p2.send("hello")
>
> or does it need to go through PTC:p1?
>
The administrator has disabled public write access.

Confused about map / TCI / TRI 18 Dec 2008 00:30 #7491

  • Liweihai
  • Liweihai's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Thanks, but I wonder commonly programmer do in the triMap interface. maybe
nothing?
On Thu, Dec 18, 2008 at 1:20 AM, Theofanis Vassiliou-Gioles <
This email address is being protected from spambots. You need JavaScript enabled to view it.> wrote:

> Dear Michael,
>
> > Does the TE have resolve the mapping from p1 to p2,
> Yes. The port referenced in triSend relates to the system port mapped to
> the component port used in the send statement. In addition you are able to
> determine from which component the send has originated.
>
> The CH plays no role when talking about mapped ports.
> > On a related note, can the TTCN-3 program send directly to system:p2
> > at all:
> No, this is not possible. A component can only send to and receive from
> it's own ports. So in your wording: it needs to go through PTC:p1.
>
> Merry Chrismas.
>
> Best regards,
> Theo
>
>
> Michael Sperber schrieb:
>
> I'm trying to understand how sending to a mapped ports works at the
>> run-time level. Say, I do this:
>>
>> map(PTC:p1, system:p2)
>> p1.send("hello")
>>
>> Does the TE have resolve the mapping from p1 to p2, i.e. call triSend on
>> p2? Alternatively, the TE would call tciSend on p1, then CH would
>> resolve the mapping and then call triSend on p2.
>>
>> On a related note, can the TTCN-3 program send directly to system:p2 at
>> all:
>>
>> p2.send("hello")
>>
>> or does it need to go through PTC:p1?
>>
>>


--

Weihai Li
SEE , Beijing Post & Telecommunication University
The administrator has disabled public write access.

Confused about map / TCI / TRI 22 Dec 2008 09:35 #7497

Hi,

It strongly depends on what the port is intended to do. In some cases
you do nothing, in other cases you might start some kind of
"receiver-thread", etc.

Best regards,
Theo

李巍海 schrieb:
> Thanks, but I wonder commonly programmer do in the triMap interface.
> maybe nothing?
>
> On Thu, Dec 18, 2008 at 1:20 AM, Theofanis Vassiliou-Gioles
> <This email address is being protected from spambots. You need JavaScript enabled to view it. <This email address is being protected from spambots. You need JavaScript enabled to view it.>> wrote:
>
> Dear Michael,
>
>
> > Does the TE have resolve the mapping from p1 to p2,
> Yes. The port referenced in triSend relates to the system port
> mapped to the component port used in the send statement. In addition
> you are able to determine from which component the send has originated.
>
> The CH plays no role when talking about mapped ports.
>
> > On a related note, can the TTCN-3 program send directly to system:p2
> > at all:
> No, this is not possible. A component can only send to and receive
> from it's own ports. So in your wording: it needs to go through PTC:p1.
>
> Merry Chrismas.
>
> Best regards,
> Theo
>
>
> Michael Sperber schrieb:
>
> I'm trying to understand how sending to a mapped ports works at the
> run-time level. Say, I do this:
>
> map(PTC:p1, system:p2)
> p1.send("hello")
>
> Does the TE have resolve the mapping from p1 to p2, i.e. call
> triSend on
> p2? Alternatively, the TE would call tciSend on p1, then CH would
> resolve the mapping and then call triSend on p2.
>
> On a related note, can the TTCN-3 program send directly to
> system:p2 at
> all:
>
> p2.send("hello")
>
> or does it need to go through PTC:p1?
>
>
>
>
> --
>
> Weihai Li
> SEE , Beijing Post & Telecommunication University
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin