Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Papyrus for Real Time » Synchronous send() in UML-RT/Papyrus-RT
Synchronous send() in UML-RT/Papyrus-RT [message #1782978] Tue, 06 March 2018 01:21 Go to next message
Karthik Vishwambar is currently offline Karthik VishwambarFriend
Messages: 2
Registered: March 2018
Junior Member
Hi,

Is there an alternate function for "send()" which is synchronous in nature. If there is, could you please share the document that explains how to use this function in Papyrus?

Thank you!

Thanks,
Karthik
Re: Synchronous send() in UML-RT/Papyrus-RT [message #1783179 is a reply to message #1782978] Thu, 08 March 2018 20:30 Go to previous messageGo to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 438
Registered: March 2011
Senior Member
Hi. I'm assuming that you are talking about Papyrus-RT (this forum), rather than plain Papyrus (which you mention in your message).

There is. It's called "invoke". But unfortunately the RTS doesn't implement it yet. You can find its declaration in the header file "umlrtoutsignal.hh", but it has no implementation in umlrtoutsignal.cc. So it is in the roadmap to eventually add it, but for now, you'll have to emulate synchronous communication with asynchronous messages. In the relevant protocol, define an "acknowledgement" message. In the sender, put the send action in a transition, and from the target state of that transition, create another transition that listens for the "acknowledgement" message. On the receiver, in the transition that accepts the original message, add a send of the acknowledgement to the sender, in the actions of that transition. This is close to emulating a synchronous send (an invoke), but not entirely, as an invoke is executed in a single run-to-completion step, whereas the pattern above divides it into two steps; the sending and the waiting for acknowledgement. There are other semantic differences, but this pattern is common to emulate synchronous message passing.
Re: Synchronous send() in UML-RT/Papyrus-RT [message #1784923 is a reply to message #1783179] Thu, 05 April 2018 20:26 Go to previous message
Karthik Vishwambar is currently offline Karthik VishwambarFriend
Messages: 2
Registered: March 2018
Junior Member
No Message Body

[Updated on: Fri, 06 April 2018 12:30]

Report message to a moderator

Previous Topic:Import RSA-RTE
Next Topic:Implementing Guards
Goto Forum:
  


Current Time: Tue Apr 23 17:08:00 GMT 2024

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

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

Back to the top