User Tools

Site Tools


bok:eng:mbse:sysml:adapting-sysml

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
bok:eng:mbse:sysml:adapting-sysml [2020/07/07 14:03]
anwlur created
bok:eng:mbse:sysml:adapting-sysml [2020/11/19 13:17] (current)
anwlur [Process] added information on model libraries
Line 10: Line 10:
 ===== Methodology ===== ===== Methodology =====
  
-==== Process ====+==== Process ​- Profiles ​==== 
 + 
 +An established process((C.Paredis and T. Johnson, "Using OMG's SysML to support simulation"​ Proceeding of the 2008 Winter Simulation Conference (2008))) to create profiles is laid out below: 
 +  - Create a metal-model for the specific domain that is being integrated. This could be done with the use of an [[bok:​eng:​mbse:​ontology|ontology]]. 
 +  - Create a SysML profile that will map the meta model to SysML stereotypes 
 +  - Create a transformation map between the meta model and SysML profile'​s entities 
 +  - For each transformation include the corresponding API call to the domain specific tool 
 + 
 +For an examination of applying SysML to other languages such as Modelica see [[bok:​eng:​mbse:​sysml:​integrate-sysml-other-languages|Integrating SysML with other languages]].
  
 If language modeler wants to make the use of a particular profile mandatory then the relationship between the model and the profile shall be **required**. If language modeler wants to make the use of a particular profile mandatory then the relationship between the model and the profile shall be **required**.
  
 +==== Process - Model Library ====
 +
 +Model Libraries are useful if the modeler wants to takes parts '​off-the-shelf'​ rather than re-create them. Should only be used for parts that will be re-used.
 +
 +To merge a maintained XMI file (e.g. a standard item type model library) do the following:
 +  - Select the package that you want the model library to be a child of (e.g. if intended model hierarchy is '​Overview/​Standard Item Type', and your XMI package top directly is '​Standard Item Type' then select '​Overview'​ package in your target model
 +  - Publish -> Model Exchange -> Import XMI -> Import Package from XML...
 +  - Select your source XMI -> Import
 ===== Parts ===== ===== Parts =====
  
 +==== Metamodel ====
 +
 +  * Metamodel is a model of a modelling language
 +  * It consists of concrete syntax, abstract syntax and semantics.
 +  * **Concrete syntax**: Facilitates the presentation and construction of models
 +  * **Abstract syntax**: Vocabulary of concepts provided by the language and how they may be combined to create models. Shown in //​italics//​. Abstract syntax deals solely with the form and structure of concepts in a language without any consideration given to their presentation or meaning ((Clark, Sammut & Williams, "​Applied Metamodeling",​ Middlesex University London (2008) 2nd edition))
 +  * **Semantics**:​ Forms relationships between syntax to give them meaning.
 ==== Profiles ==== ==== Profiles ====
  
Line 28: Line 51:
  
 ==== Stereotypes ==== ==== Stereotypes ====
 +
 +<WRAP center round info 60%>
 +Images in this section are copied from T. Weilkiens, "​Systems Engineering with SysML/​UML"​ MK Press (2006).
 +</​WRAP>​
  
   * Stereotypes are collected in Profiles (which is a specialization of Package).   * Stereotypes are collected in Profiles (which is a specialization of Package).
   * Stereotype **extends** metaclass (a construct of SysML, e.g. "​Block"​). This extension relationship is a specialization of the association relationship.   * Stereotype **extends** metaclass (a construct of SysML, e.g. "​Block"​). This extension relationship is a specialization of the association relationship.
 +
 +{{:​bok:​eng:​mbse:​sysml:​adapt:​extend.png?​300| }}
 +
 +//Example of extending a metaclass with a Stereotype. Note the black arrow//
 +  * Stereotypes can also specialize other stereotypes
 +{{:​bok:​eng:​mbse:​sysml:​adapt:​generalization.png?​400 |}}
 +
  
 === Properties of Stereotypes === === Properties of Stereotypes ===
bok/eng/mbse/sysml/adapting-sysml.1594130595.txt.gz · Last modified: 2020/07/07 14:03 by anwlur