Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Papyrus for Real Time » Submodel
Submodel [message #1776325] Wed, 15 November 2017 11:18 Go to next message
Sekwon Jang is currently offline Sekwon JangFriend
Messages: 10
Registered: November 2017
Junior Member
I want to make submodel of a capsule in order to separate from main model.
So I tried to use "Create Submodel" of a capsule and made di, uml, notation file.
But, I can't open new model(Model Icon in Project Explorer has ? Icon).
When I change code of a capsule, model file is not updated and show error given below
"org.eclipse.uml2.uml.internal.impl.ClassImpl cannot be cast to org.eclipse.uml2.uml.Package"
Should I need to do something after doing "Create Submodel".
Re: Submodel [message #1776330 is a reply to message #1776325] Wed, 15 November 2017 12:03 Go to previous messageGo to next message
Sekwon Jang is currently offline Sekwon JangFriend
Messages: 10
Registered: November 2017
Junior Member
Is there any way to separate a capsule from parent uml file
Re: Submodel [message #1776337 is a reply to message #1776330] Wed, 15 November 2017 13:03 Go to previous message
Nicolas Hili is currently offline Nicolas HiliFriend
Messages: 40
Registered: March 2017
Member
Hello Sekwon,

The way I use to do it is the following:


  1. Create a UML-RT model and add a UML-RT package at the top level (RootElement). All the things that you want to export as a submodel (e.g., capsules, protocols) go into that package. All the things that you do not want to export as a submodel (e.g., the Top capsule and the capsule parts used in that model for testing it) go into the RootElement.
  2. Right click on the UML-RT package in the model explorer and select Create Submodel. Choose a resource and save it.
  3. Open (or create) a second model in which you want to import your submodel. At the top-level element (RootElement), right click in the model explorer and select import / import package from user model. Select your submodel. Hit next.
  4. In the next dialog, you can choose which package to import. Import the top-level package and select Copy all or Import all. You can also select Load all but if the package is loaded only, code will not be generated for its content.


Nicolas
Previous Topic:recall timeouts?
Next Topic:Region with the same label declared on line
Goto Forum:
  


Current Time: Fri Apr 19 22:12:03 GMT 2024

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

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

Back to the top