|
Re: rtBound signal is not shown in message list [message #1763943 is a reply to message #1763923] |
Tue, 23 May 2017 05:07   |
Eclipse User |
|
|
|
Hi,
How did you create your model? Did you use the "UML-RT for C++" template when creating the model? Or is this an existing model that was not based on this (or any other) template?
If so, have you set the default action language of the model to "C++"? You can do that in the properties view on the root element of the model, in the UML-RT sub-tab "Language". When you have done this, then the UML-RT run-time model library (UMLRT-RTS) library is being loaded and makes the rtBound and rtUnbound protocol messages available for selection when creating a trigger.
Keep in mind also that the "Is Notfication" property needs to be enabled on the port to ensure that the rtBound and rtUnbound notifications are generated for that specific port during run-time.
And finally, although this might be obvious, keep also in mind that SAP ports based on system protocols from the run-time model library, e.g. Log, Timing, Frame, does not have the rtBound and rtUnbound (and neither can you set the "Is Notification" property), since system ports are by definition always bound. So for these types of ports you will never see rtBound and rtUnbound protocol messages when creating a trigger (which in practice only is made for the timeout protocol message for Timing ports).
Hope this helps,
/Peter Cigéhn
|
|
|
|
Re: rtBound signal is not shown in message list [message #1764022 is a reply to message #1763965] |
Wed, 24 May 2017 03:31  |
Eclipse User |
|
|
|
Mojtaba Bagherzadeh wrote on Tue, 23 May 2017 12:53Thanks a lot, setting the language fixed the problem.
Good! Keep in mind also that the default language for the model also controls the behavior of the code snippet view where you enter the action code. The code snippet view ensures that the opaque behaviors for transition effect, entry and exit for states, and opaque expressions for guards, have the correct language set based on the default language for the model (something that you as a user really should not have to bother about).
So the default language setting is pretty fundamental for several tooling aspects, not only for ensuring that rtBound/rtUnbound are available for selection when creating a transition trigger.
So the tip is that for any new models that you create with 0.9, always use the "UML-RT for C++" template, since then you get the default language set to C++ "automagically".
/Peter Cigéhn
|
|
|
Powered by
FUDForum. Page generated in 0.04614 seconds