Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Papyrus for Real Time » Protocol Messages with user-defined datatype parameters
Protocol Messages with user-defined datatype parameters [message #1801071] Sat, 12 January 2019 00:16 Go to next message
Selvaganesh Murugan is currently offline Selvaganesh MuruganFriend
Messages: 14
Registered: December 2018
Junior Member
Hi,

https://www.eclipse.org/forums/index.php/m/1800240/?srch=dimo#msg_1800240
From the above link, it is clear about adding my external library (#include "mylib.h") to a capsule in Papyrus-RT.

Please clarify if there is a way to add Protocol Messages (in or out) with user-defined datatype (say structure or enumeration type defined in external libraries - "mylib.h") as parameters?
Re: Protocol Messages with user-defined datatype parameters [message #1801130 is a reply to message #1801071] Mon, 14 January 2019 12:45 Go to previous messageGo to next message
Nicolas Hili is currently offline Nicolas HiliFriend
Messages: 40
Registered: March 2017
Member
Hi,

As far as I can remember, using protocol messages with user-defined datatypes will generate a code that cannot be compiled. What you can do however is to create a passive class in UML-RT with an attribute typed with your user-defined datatype. So the passive class acts as a wrapper to encapsulate your data to pass as argument of your message.

Then, instead of typing your message's parameter with your user-defined datatype, type it with the passive class.

This technique worked for me. I am not sure there exists another alternative.

Nicolas
Re: Protocol Messages with user-defined datatype parameters [message #1801185 is a reply to message #1801130] Tue, 15 January 2019 01:01 Go to previous messageGo to next message
Selvaganesh Murugan is currently offline Selvaganesh MuruganFriend
Messages: 14
Registered: December 2018
Junior Member
Thanks Nicolas!
Re: Protocol Messages with user-defined datatype parameters [message #1855110 is a reply to message #1801185] Wed, 28 September 2022 20:05 Go to previous message
Selvaganesh Murugan is currently offline Selvaganesh MuruganFriend
Messages: 14
Registered: December 2018
Junior Member
No Message Body

[Updated on: Wed, 28 September 2022 23:58]

Report message to a moderator

Previous Topic:Statemachine UML-RT
Next Topic:DOWNLOAD AND INSTALL PAPYRUS-RT
Goto Forum:
  


Current Time: Wed Dec 04 17:47:01 GMT 2024

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

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

Back to the top