TTCN-3 record with a field of type "port" [message #1848441] |
Thu, 02 December 2021 03:43  |
Eclipse User |
|
|
|
Hello All,
I have the following TTCN-3 data structure
type port MyPort message {
in
MsgIn;
out
MsgOut;
};
type record Interface {
MyPort myPort,
charstring myHost,
charstring myProtocolBinding,
charstring mySerialization
}
While compiling the code, I got the following error:
Port type `@OneM2M_Ports.OneM2MPort' cannot be embedded into another type
But, according to the TTCN-3 Core Language standard, this kind of data structure is authorized.
Is it a limitation of TITAN? Is there a work-around to address it?
Many thanks for your support,
BR\Yann
|
|
|
|
Re: TTCN-3 record with a field of type "port" [message #1848576 is a reply to message #1848475] |
Wed, 08 December 2021 07:47  |
Eclipse User |
|
|
|
Hello Lenard,
Thanks a lot for your feedback.
This is about oneM2M Conformance test suite.
We have several network interface (mcc, mca...). To prevent a lot of test in send/receive functions, a component variable was created (with the type record), containing the port, the binding, the serialization and so on.
Initially, this test suite was develop with TTworkbench and I'm trying to compile it with TITAN.
Regarding the TTCN-3 type, you're right, so I have to find another way to go.
Many thanks again for your help,
BR\Yann
|
|
|
Powered by
FUDForum. Page generated in 0.04282 seconds