Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsUse externally defined structure in a signal
https://www.eclipse.org/forums/index.php/mv/msg/1097875/1803501/#msg_1803501
Dimo Ditchev2019-03-01T17:34:54-00:00Re: Use externally defined structure in a signal
https://www.eclipse.org/forums/index.php/mv/msg/1097875/1803595/#msg_1803595
You can have some information in this thread.
Basically, you have two options:
You want to define your structure inside your UML-RT model: you can create a passive class in your UML-RT model (in the model explorer, right-click on the top-level element, select "New UML-RT Child / Class"). Then, you can add attributes and operations to the class using the same way.
You want to use externally defined structures (e.g., available through a library you want to link): you can follow the instructions from this thread to import it in your model.
Not sure if there are some examples available online, but it should be straightforward to do it.
Cheers,
Nicolas]]>Nicolas Hili2019-03-05T08:52:52-00:00Re: Use externally defined structure in a signal
https://www.eclipse.org/forums/index.php/mv/msg/1097875/1803697/#msg_1803697
I practiced both this approaches and they worked.
It was a little harder to use an external Class/Struct as a parameter in a function signature - the parser errored.
I found that the way around is to wrap any external Class/Struct in a PapyrusRT Passive class. Then I can typedef the custom identifier as a member of the Passive Class.