Skip to main content



      Home
Home » Eclipse Projects » Papyrus for Real Time » Protocol Messages with user-defined datatype parameters
Protocol Messages with user-defined datatype parameters [message #1801071] Fri, 11 January 2019 19:16 Go to next message
Eclipse UserFriend
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 07:45 Go to previous messageGo to next message
Eclipse UserFriend
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] Mon, 14 January 2019 20:01 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Nicolas!
Re: Protocol Messages with user-defined datatype parameters [message #1855110 is a reply to message #1801185] Wed, 28 September 2022 16:05 Go to previous message
Eclipse UserFriend
No Message Body

[Updated on: Wed, 28 September 2022 19:58] by Moderator

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


Current Time: Fri Apr 25 08:54:07 EDT 2025

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

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

Back to the top