Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDefine a trigger which its signal is set to all incoming messages
https://www.eclipse.org/forums/index.php/mv/msg/1086651/1765034/#msg_1765034
Currently, there is a way to define a trigger which its signal is any message of a specific protocol.
Is there any way to define a trigger which its signal is set to any message from any protocol (i.e., all incoming messages)?
Thanks
Mojtaba]]>Mojtaba Bagherzadeh2017-06-05T21:21:05-00:00Re: Define a trigger which its signal is set to all incoming messages
https://www.eclipse.org/forums/index.php/mv/msg/1086651/1765125/#msg_1765125
See the attached example.
]]>Ernesto Posse2017-06-06T20:48:37-00:00Re: Define a trigger which its signal is set to all incoming messages
https://www.eclipse.org/forums/index.php/mv/msg/1086651/1765136/#msg_1765136
That would be great if we could set "*" at the port level too. it is more user-friendly and I think It can decrease the generated code size.
My issue is that I am trying to defer all messages in some states programmatically, so having "*" at port level can save me some time and make my implementation much easier.
Anyway, for now, I will do what you suggest, but I think it is a good feature to be added. If you agree I can submit a bug.
Thanks
Mojtaba
]]>Mojtaba Bagherzadeh2017-06-06T22:19:15-00:00Re: Define a trigger which its signal is set to all incoming messages
https://www.eclipse.org/forums/index.php/mv/msg/1086651/1765139/#msg_1765139
Since its one trigger with one or more ports on the same transition and a transition has only one action, the action is the same for all of these events, and the function generated is one and has UMLRTMessage * msg as parameter to you can do
msg->defer();
]]>Ernesto Posse2017-06-06T23:51:12-00:00Re: Define a trigger which its signal is set to all incoming messages
https://www.eclipse.org/forums/index.php/mv/msg/1086651/1765141/#msg_1765141
and I mean the following figure which we can set * for port