Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » How to get the component name from PORT?(TTCN-3 PCTs)
How to get the component name from PORT? [message #1850517] Mon, 07 March 2022 14:03 Go to next message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Hello,

I have a test with one MTC and several PTCs.
At the Test System level, in the protocol port (derived from the class Port), I want to retrieve the component name (e.g. PTC1, PTC2...).
Unfortunately, I cannot found any method in the class Port to get this information.

How can I proceed?

Many thanks in advance

BR\ Yann
Re: How to get the component name from PORT? [message #1850565 is a reply to message #1850517] Tue, 08 March 2022 15:24 Go to previous messageGo to next message
Gábor Szalai is currently offline Gábor SzalaiFriend
Messages: 134
Registered: December 2015
Senior Member
There is no such public API function for get the component name. It is possible to add.
Re: How to get the component name from PORT? [message #1850567 is a reply to message #1850565] Tue, 08 March 2022 15:26 Go to previous messageGo to next message
Botond Baranyi is currently offline Botond BaranyiFriend
Messages: 55
Registered: February 2016
Member
The static function TTCN_Runtime::get_component_name() returns the name of the component the current code is running on (each component runs on a separate process).
Re: How to get the component name from PORT? [message #1850713 is a reply to message #1850567] Tue, 15 March 2022 07:37 Go to previous message
Yann Garcia is currently offline Yann GarciaFriend
Messages: 145
Registered: June 2016
Senior Member
Hello,

Thanks a lot for your response.

Have a nice day,

BR\ Yann
Previous Topic:Any interest in a TTCN/TITAN related conference?
Next Topic:Formal parameter default value
Goto Forum:
  


Current Time: Sat Oct 05 13:02:02 GMT 2024

Powered by FUDForum. Page generated in 0.02990 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top