Skip to main content



      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 09:03 Go to next message
Eclipse UserFriend
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 10:24 Go to previous messageGo to next message
Eclipse UserFriend
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 10:26 Go to previous messageGo to next message
Eclipse UserFriend
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 03:37 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 18:41:29 EDT 2025

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

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

Back to the top