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

TOPIC: Address or component sender?

Address or component sender? 22 Aug 2008 09:19 #7419

Under what circumstances does the sender clause with receive etc. yield
an address, and under what circumstances does it yield a component? It
seems clear enough for system ports (address) and connected ports
(component). However, what does a mapped port yield - the system
component, or the address? (I'm assuming the address, but I'm not
sure.)

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

Address or component sender? 22 Aug 2008 09:25 #7420

Dear Mike,

clause 6.2.12 Addressing entities inside the SUT.

The TSI is not a real test component, you cannot address it; the keyword system is used at port mapping only.

BR, Gyorgy

>
Original Message
> From: 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.] On Behalf Of Michael Sperber
> Sent: Friday, 22 August, 2008 11:19 AM
> To: This email address is being protected from spambots. You need JavaScript enabled to view it.
> Subject: Address or component sender?
>
> Under what circumstances does the sender clause with receive
> etc. yield an address, and under what circumstances does it
> yield a component? It seems clear enough for system ports
> (address) and connected ports (component). However, what
> does a mapped port yield - the system component, or the
> address? (I'm assuming the address, but I'm not
> sure.)
>
> --
> Regards,
> Mike
>
The administrator has disabled public write access.

Address or component sender? 23 Aug 2008 15:06 #7421

György Réthy <This email address is being protected from spambots. You need JavaScript enabled to view it.> writes:

> The TSI is not a real test component, you cannot address it; the keyword system is used at port mapping only.

I know. But I can map a port that *is* part of a test component to a
system port, right? What is the value for the sender for messages
received on that port?

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

Address or component sender? 25 Aug 2008 09:33 #7422

Hi,

"What is the value for the sender for messages received on that port?" -> You determine the value "manually" in the TTCN-3 code.

While the type of component references are not known (test-system specific) and the values are allocated by the test system implicitly and automatically (the user can/shall work with the variable names only), in case of address, both the type and the value are specified by the user (OK, there may be "tricky" cases, when the value is received from the adapter at some initialization phase and just stored in TTCN-3 - but it is just a specific use, it could be assigned by the user; the component reference cannot). E.g.

type charstring address;
const address you := "you";
...

mappedP.send(ts_myMessage) to you;
mappedP.receive(tr_myMessage) from you;


BR, Gyorgy


>
Original Message
> From: 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.] On Behalf Of Michael Sperber
> Sent: Saturday, 23 August, 2008 5:06 PM
> To: This email address is being protected from spambots. You need JavaScript enabled to view it.
> Subject: Re: Address or component sender?
>
> György Réthy <This email address is being protected from spambots. You need JavaScript enabled to view it.> writes:
>
> > The TSI is not a real test component, you cannot address
> it; the keyword system is used at port mapping only.
>
> I know. But I can map a port that *is* part of a test
> component to a system port, right? What is the value for the
> sender for messages received on that port?
>
> --
> Regards,
> Mike
>
The administrator has disabled public write access.

Address or component sender? 26 Aug 2008 05:46 #7423

György Réthy <This email address is being protected from spambots. You need JavaScript enabled to view it.> writes:

> "What is the value for the sender for messages received on that port?"
> -> You determine the value "manually" in the TTCN-3 code.

So I can get either the address, or the component by choosing an
appropriately typed variable, but not both?

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

Address or component sender? 26 Aug 2008 08:54 #7424

Yes. Address is used on mapped ports _only_ and component references are used in to/from clauses of connected ports _only_.

BR, Gyorgy

>
Original Message
> From: 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.] On Behalf Of Michael Sperber
> Sent: Tuesday, 26 August, 2008 7:46 AM
> To: This email address is being protected from spambots. You need JavaScript enabled to view it.
> Subject: Re: Address or component sender?
>
> György Réthy <This email address is being protected from spambots. You need JavaScript enabled to view it.> writes:
>
> > "What is the value for the sender for messages received on
> that port?"
> > -> You determine the value "manually" in the TTCN-3 code.
>
> So I can get either the address, or the component by choosing
> an appropriately typed variable, but not both?
>
> --
> Regards,
> Mike
>
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin