TPC 5.1.0 UML&SysML WithPapyrus Features Tutorial
TPC 5.1.0 UML&SysML WithPapyrus Features Tutorial
Agenda
Prerequisites Whats new since previous tutorial Create a new TOPCASED project/model with Papyrus Editor Import Primitive Types Show/hide compartments and features UML/SysML Diagrams Overview Presentation of all UML diagrams Presentation of SysML specific diagrams Specialization of items UML profiles Frequently asked questions
Topcased UML/SysML Papyrus editor Tutorial
Prerequesites
This tutorial supposes that you have read the generic Quick start editor tutorial Generic capabilities offered by TOPCASED editors will not be covered here Only UML/SysML specific features are presented in next slides
You can consult the release note to find all news on TOPCASED 5.1.0:
http://www.topcased.org/index.php?idd_projet_pere=52&Itemid=60
You can consult Papyrus documentation for more information on Papyrus editor :
http://www.eclipse.org/modeling/mdt/papyrus/usersTutorials/usersTutorialsIndex.php
New tutorial for TOPCASED new editors based on Eclipse Papyrus technology
Note: concerns UML and SysML only in this release For other editors, please use the classical TOPCASED quickStart
Select New > Other > Papyrus Model by right-clicking on the Model Explorer View and follow the wizard as explained in TOPCASED quick starting guide for Papyrus
UML model and diagram data, available in the model explorer view
Right click on a package and select import primitive types You can also generate them using Generate Primitive Types (only available on model)
The example will be based on a simple class (UML) or block (SysML). Create a new class in class diagram or Block in the Block Definition Diagram Add Properties & Operations Add Parameters to the Operations (These operations can be performed from the Parameters panel of the Properties View when an Operation is selected)
properties operations
The option to Hide/Show elements of this node is accessible from the Show/Hide Compartments choice of the Filters option. First you need to select the element. In your example, select the new block. Right click and select Filters > Show/Hide Compartments . A window is opened :
- select the Compartments to display - unselect the Compartments to hide.
10
The option to Hide/Show elements of this block is accessible from the Show/Hide Compartments choice of the Filters option. First you need to select the element. In your example, select the new block. Right click and select Filters > Show/Hide Contents . A window is opened :
- select the elements to display - unselect the elements to hide.
11
12
Options to Hide/Show elements of this block are accessible from the Appearance panel of the Properties View. First you need to select the element. In your example, select the element in the new block. In the Properties View, select the Appearance tab. The field named Label customization enable you to select the parameter to show/hide.
13
14
[Michel ZAM]
Structural diagrams
Package Classes & instances Components Composite Deployment
Behavioral
Use cases Sequence/communication State machine Activity Timing (non yet supported) Profile
and extensions
-
15
Behavior Diagram
Requirement Diagram
Structure Diagram
Activity
Sequence
State Machine
Use Case
BDD
IBD
Package
Parametric
16
Useful for model organization Address different view points Address different abstraction levels
[INCOSE Model]
17
Subject
Advanced concepts
Include relationship
Functional reuse Similar behavior
18
Contextual to an interaction
Objects lifecycle
Main concepts
Up to Down
Advanced concepts
Interaction use
-
Reference behavior
Combined fragments
Parallel Alternative Loop
20
Main concepts
21
Main concepts
Initial and final nodes Opaque and call actions Accept event & send actions Control and object flows Activity partition Parameter Decision and merge Fork and Join (parallelization) Central buffer/Datastore Structured Activity Nodes All other actions
Loop Node Conditional Node Sequence Node With pins
Advanced concepts
22
Main concepts
Constraints
23
24
25
Examples :
nodes = hardware components artifact = application, database, executable file
26
Advanced concepts
27
28
Block Part
A part resulting froom the decomposition of a block Quantitative characteristics of the system Points of interaction with other blocks Standard port : types of services that a block either requires or provides Flow port : specify what can flow in and out of blocks
Values
-
Port
-
29
IBD describes the internal structure of a system in terms of its parts, ports, and connectors
Main Concepts
Connectors
30
Useful to integrate the specification and design models with engineering analysis models.
Main Concepts
31
Captures requirements hierarchies and requirements derivation Satisfy and verify relationships allow a modeler to relate a requirement to a model element that satisfies or verifies the requirements Bridge between the typical requirements management tools and the system models
Main Concepts
Requirement
Id Text
32
Create a new Papyrus Model Select Profile as Diagram Language Select UML Profile Diagram (You can also load a template)
33
Create stereotypes
indicate the items (metaclass) to which they are applicable Use Extension Relations between stereotypes and metaclasses
Capabilities :
Add properties to stereotype Inheritance Create abstract stereotypes Create new enumeration Define new data types
34
35
Select a package in the Model Explorer view (1) Select Profile Tab in the Property View Use Apply Profile button to apply your profile (2) You can also Apply Registered profiles (2) Select the profile model (.uml extension) (3)
Apply a stereotype
Select the item you want to apply the stereotype (Model Explorer View or Diagram) Use the Add New Element button in Property View (Profile tab) Select the stereotype to apply
Note that the available stereotypes are filtered depending on the selected element types.
37 Topcased UML/SysML Papyrus editor Tutorial
Double-click to modify the value of the property (or use predefined buttons)
38 Topcased UML/SysML Papyrus editor Tutorial
39
40
Right click on palette view Use the Add button Give a name to your palette
41
Select the meta-class element and add them to your palette (preview) Set stereotypes list Using Aspect Actions
42
To create An element import, right click on a package, create child > element import and in advanced properties section fill the property imported element A package import, right click on a package, create child > package import and in advanced properties section fill the property imported package
43