How to create "Model library" in Papyrus (SysML) for a domain specific modelling?

441 Views Asked by At

I am trying to create a 'model library' in SysML using Papyrus in order to implement a domain-specific modelling elements to be use & reuse in different projects. In the 'model library' I need to have model Block elements such as "Hardware" & "Software".

As far as I understand from the book "A Practical Guide to SysML" in Chapter 15 "CUSTOMIZING SysML FOR SPECIFIC DOMAINS", it is needed to use 'Model Libraries' in order to customise SysML for specific domains.

In my understanding, a 'model library' is a type of a Package which can be created easily in Papyrus 5.0 using SysML profile 1.6 (the nightly version which is the latest release of 1.6).

I also found a screenshot of a diagram in which a SysML Block is used as a "Hardware" block (not stereotype). I need to implement that in a model library but I didn't find the way to create 'model library' in Papyrus and don't know how to create the "Hardware" block.

Can you please explain how to accomplish these?

Appreciate your help.

Edit 1: I found these URLs useful:

Discussion regarding the use of Model library over StereoType: https://www.eclipse.org/forums/index.php/t/1085784/

Using StereoType: https://www.eclipse.org/forums/index.php/t/1100964/

1

There are 1 best solutions below

2
On

A model library is just a package, that the modeler intends to be used by multiple projects. To make this known, apply the stereotype «modelLibrary» to it. It is still a package, so everything that can be done with a package can be done with it. So, create a Block, name it Hardware and you are done.

Another question is, how to use a package in another model. This depends on your tool, but there should be some method of opening a package from another model in your model.