Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Sync java and ttcn(sync java and ttcn files into eclipe titan plugin)
Sync java and ttcn [message #1730424] Mon, 25 April 2016 16:36 Go to next message
Alexandre Moine is currently offline Alexandre MoineFriend
Messages: 9
Registered: April 2016
Junior Member
Hi

Is it possible to use java and ttcn files in the same time with Titan in Eclipse or in terminal? Actually I'm newbie and I'm trying to import an existing ttcn project into Titan that is composed of these files.

If you have some examples or suggestions feel free to notice me o/
Re: Sync java and ttcn [message #1730473 is a reply to message #1730424] Tue, 26 April 2016 07:15 Go to previous messageGo to next message
Kristof Szabados is currently offline Kristof SzabadosFriend
Messages: 29
Registered: July 2015
Junior Member
Hi,

Yes, you can have projects with mixed kinds of source codes (with limited support).

In eclipse the platform supports projects with something called "natures" and "builders".
So that platform itself is just giving us the project and what it contains.
If you add Java nature to it JDT will kick in, and handle all related work.
If you add the TITAN nature to a project, Titan will handle all TTCN-3 and ASN.1 files in that project (and support build via the builder it adds to the project).
And it is possible to have a project with Java and Titan natures (and any other too)

It is also possible to call C/C++ functions from TTCN-3, which in turn can call Java functions.

As these are completely separate systems, manual work will be needed.
For example code completion between TTCN-3 and Java will not work.
Re: Sync java and ttcn [message #1730501 is a reply to message #1730473] Tue, 26 April 2016 11:48 Go to previous messageGo to next message
Alexandre Moine is currently offline Alexandre MoineFriend
Messages: 9
Registered: April 2016
Junior Member
Hi

Thank you Kristof for that clarification. I now understand better how it works.
So if I'm not mistaken I just have to call my java functions with the help of c++ functions from ttcn3 ? Doesn't seem that impressive I will have some work to do I guess.
Re: Sync java and ttcn [message #1730521 is a reply to message #1730501] Tue, 26 April 2016 13:31 Go to previous messageGo to next message
Kristof Szabados is currently offline Kristof SzabadosFriend
Messages: 29
Registered: July 2015
Junior Member
Just to help: you will have to create an "external function" on the TTCN-3 side, to which you can provide the implementation yourself
Re: Sync java and ttcn [message #1730565 is a reply to message #1730521] Tue, 26 April 2016 16:56 Go to previous messageGo to next message
Alexandre Moine is currently offline Alexandre MoineFriend
Messages: 9
Registered: April 2016
Junior Member
Sorry I didn't understand your tip, could you be more specific?
Re: Sync java and ttcn [message #1730733 is a reply to message #1730565] Thu, 28 April 2016 06:56 Go to previous messageGo to next message
Kristof Szabados is currently offline Kristof SzabadosFriend
Messages: 29
Registered: July 2015
Junior Member
TTCN-3 supports a construct called "external function".
These are functions, that can be used in TTCN-3 as normal functions ... but their behaviour is not declared in TTCN-3, but instead you have to write it in C++ (in Titan).

For an example please check the API Technical reference guide provided with Titan, section 6.2 "Using External C++ Functions in TTCN-3 Test Suites".
Re: Sync java and ttcn [message #1730738 is a reply to message #1730733] Thu, 28 April 2016 07:33 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 760
Registered: January 2015
Senior Member
Hi Alexandre,

I have posted a usage example in a separate topic:

https://www.eclipse.org/forums/index.php/t/1076977/


Best regards

Elemer
Re: Sync java and ttcn [message #1730834 is a reply to message #1730738] Thu, 28 April 2016 22:53 Go to previous message
Alexandre Moine is currently offline Alexandre MoineFriend
Messages: 9
Registered: April 2016
Junior Member
Thank you for all of the guidance and support you provided.
It's more than I imagined \ (•◡•) /
Next Topic:Ubuntu 16.04 is out, a new release of Eclipse Titan follows shortly
Goto Forum:
  


Current Time: Fri Jun 22 07:33:02 GMT 2018

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

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

Back to the top