Jump to: navigation, search

Difference between revisions of "MDT-UML2Tools How To Use UML Profiles"

m
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
UML Profiles provide a generic extension mechanism for building UML models in particular domains. They are based on additional Stereotypes and Tagged values that are applied to Elements, Attributes, Methods, Links, Link Ends and more. A profile is a collection of such extensions that together describe some particular modeling problem and facilitate modeling constructs in that domain.
+
UML cannot cover needs of all possible domains. Standard UML metamodel has to be augmented in order to meet requirements of a particular domain. That's why Profile mechanism was created - a way to create a lightweight extension of Standard UML.
  
 
== Summary==
 
== Summary==
Line 9: Line 9:
 
==Create Profile==
 
==Create Profile==
 
=== Create Profile Definition Diagram ===
 
=== Create Profile Definition Diagram ===
 +
First, create Profile Definition Diagram using wizard 'Profile Definition Diagram' from 'UML 2.1 Diagrams' located in File > New > Other > ... menu item.
 +
Profile is a root element of the created diagram.
 +
Key elements of Profile Definition diagram are:
 +
* Profile
 +
* Stereotype
 +
* Metaclass
 +
* Extension link
 +
 
=== Define Profile ===  
 
=== Define Profile ===  
 +
When profile is completely finished, it's time to define it. This is obligatory step in our workflow, because it saves defined profile as a static Ecore structure in UML model, it allows subsequent use of profile content. In order to define a profile in UML2 Tools call action "Profile > Define" from the context menu of the profile diagram:
 +
 +
=== Register Profile===
 +
Adding profile to the registry simplifies profile application later. The step can be omitted.
  
 
==Use Profile==
 
==Use Profile==
 
=== Apply Profile ===
 
=== Apply Profile ===
 
=== Apply Stereotype ===
 
=== Apply Stereotype ===

Revision as of 11:18, 16 October 2008

Introduction

UML cannot cover needs of all possible domains. Standard UML metamodel has to be augmented in order to meet requirements of a particular domain. That's why Profile mechanism was created - a way to create a lightweight extension of Standard UML.

Summary

Here is the workflow of creating and using UML profile:

UsingProfile.gif

Create Profile

Create Profile Definition Diagram

First, create Profile Definition Diagram using wizard 'Profile Definition Diagram' from 'UML 2.1 Diagrams' located in File > New > Other > ... menu item. Profile is a root element of the created diagram. Key elements of Profile Definition diagram are:

  • Profile
  • Stereotype
  • Metaclass
  • Extension link

Define Profile

When profile is completely finished, it's time to define it. This is obligatory step in our workflow, because it saves defined profile as a static Ecore structure in UML model, it allows subsequent use of profile content. In order to define a profile in UML2 Tools call action "Profile > Define" from the context menu of the profile diagram:

Register Profile

Adding profile to the registry simplifies profile application later. The step can be omitted.

Use Profile

Apply Profile

Apply Stereotype