|Re: RTFactory utility class for Papyrus-RT [message #1742723 is a reply to message #1742720]
||Tue, 06 September 2016 22:23
| Ernesto Posse
Registered: March 2011
Our API doesn't match the RSA-RTE API literally.
The answer depends on what type of model you are working with: is your model a UML2 model (from a .uml file) or are you working with the intermediate representation (XtUML-RT) used for code-generation/analysis, etc.? Also, does your code need to work in stand-alone mode or can it assume that it is running on Eclipse with Papyrus running?
You can find a factory class in the o.e.prt.umlrt.profile plugin in the utils package, but this is an actual factory to create instances, not an API for querying whether an eObject is, e.g. a Capsule or not.
For such queries, the answer depends on whether your code needs to run in stand-alone or it runs on Eclipse with Papyrus running, and whether you are working with UML models or with the intermediate representation (XtUML-RT):
1) If you are working with UML models (from a .uml file):
a) If your code should run on Eclipse with Papyrus, look at the o.e.prt.umlrt.core plugin, in particular the 'utils' sub-package
b) If your code must run in stand-alone, look at: o.e.prt.xtumlrt.external: the 'UMLRTProfileUtil' class in the 'predefined' sub-package for working with UML models (also works in Eclipse/Papyrus)
2) If you are working with XtUML-RT models: o.e.prt.xtumlrt.util: the 'XTUMLRTUtil' class, for working with XtUML-RT models (works on both stand-alone and in Eclipse/Papyrus)
Hope this helps.
Powered by FUDForum
. Page generated in 0.02791 seconds