UML Profile Management

Unified Modeling Language (UML) is a general purpose modeling language which is widely used in modeling software systems. In some occasions UML may not be precise enough for modeling specific problem domain. The UML Profile is an extension mechanism for customizing the models for specific domains or platforms. This tutorial will teach you how to create customized profile in VP-UML.

January 7, 2010
User Rating: / 2
Views: 6,244
PDF Link Add comments
Edition: Standard or above (Edition comparison)

  1. Switch to Model Explorer, right click on the project root node and select Create Profile.
    create profile
  2. Name the profile as Vehicle Engineering Profile.
    new profile
  3. Right click on Vehicle Engineering Profile, and then select Sub Diagrams > New Profile Diagram.
    new profile diagram
  4. Now you can model the profile in the profile diagram. Let's create a stereotype in the diagram.
    new stereotype
  5. The Select Base Type of Stereotype dialog will be shown, which allows you to specify the type of target model element for using the stereotype you are creating. Let's select Statics > Class as the base type.
    select base class
  6. Now a stereotype is being created in diagram. Name the stereotype as Vehicle.
    stereotype shape
  7. Right click on Vehicle stereotype and select Open Specification.
    open spec
  8. Switch to Tagged Value Definitions tab and now you can define tagged values for this stereotype.
    tagged val tab
  9. Press the Add button and you can select the type of tagged value you want to create from the drop down menu. Let's select Floating Point Number Tag.
    floating tag
  10. Name the tagged value as speed-limit, with Default Value as 0.0.
    create tag
  11. Repeat the steps to create the following tagged values, and press OK to close the specification dialog.
    all tagged values
  12. Stereotypes can associate with each other via composition. Let's create a stereotype Body for modeling the body of a vehicle in specific. Click on the Vehicle stereotype and drag out the composition icon.
    comp
  13. A new stereotype Body is created, which has class specified as base type automatically.
  14. Besides composition, you can also create specialized stereotypes. Let's create a stereotype Pickup Trunk which is a specialized type of vehicle. Click on the Vehicle stereotype and drag out the generalization icon.
    gen
  15. Here is the completed profile diagram.
    profile diagram
  16. Now your profile is ready to use. Let's create a class diagram and create a class Light Motor Vehicle.
    create class
  17. Right click on Light Motor Vehicle, and select Stereotypes > Pickup Trunk.
    select stereotype
  18. Right click on Light Motor Vehicle again and select Open Specification, switch to Tagged Values tab. Now you can see the tagged values defined in Pickup Trunk stereotypes are added to Light Motor Vehicle, including tagged values from Vehicle stereotype.
    tags
  19. From our profile diagram the super-stereotype of Pickup Trunk is composite of various stereotypes, such as Body and Interior. We can add the tagged values associated to those stereotypes directly to Light Motor Vehicle. Press the Add button and select Body.
    add body
  20. A new tagged value entry for the Body stereotype has been inserted.
    body stereotype
  21. Click the ... button in the Value cell of Body tagged value, the Sub-level Tagged Values dialog will be displayed. You can specify the tagged values of the Body stereotype directly here.
    sub tag

Related Links

  1. Know-how: Define and specify stereotype in BPD

Rate this Article

Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).

You may be interested in

  1. Writing Effective Use Case
  2. UML Package Diagram
    Tagged:
  3. Draw Entity Relationship Diagram (ERD)
    Tagged:
  4. Produce UML Use Cases from Business Process Diagram (BPD)
  5. Draw UML Sequence Diagram with Keyboard
Tags of this article:

Comments (7)

written by Christian on February 23, 2010

The function to reorder the "Tagged Value Definitions" is not available. How can I rerange my list?

written by Alex on November 5, 2010

Where is this feature on VP 8.0, I can't find it?

written by Jick on November 8, 2010

UML profile support is available starting from the Standard Edition. Please make sure you are running the Standard/Professional/Enterprise Edition of VP-UML.

written by Jiri on March 8, 2011

In some UML profiles (like this one http://www.uml.org.cn/UMLSearch/UMLExampleProfiles.pdf) are used "Association" as base class. Is there a way how to achieve that in VP?

written by Jick Yeung on March 9, 2011

Hi Jiri,

Thank you for your post. I am glad to inform you that your request has been supported. To try, please update your installation to the latest patch release to get the change. For instruction, please read:
http://www.visual-paradigm.com/support/articles/update-to-latest-patch.jsp

Best regards,
Jick Yeung

written by Jiri on April 13, 2011

Thank you for your respond, I have already requested new licence key.

But I have another two questions.

1) I want to add Boolean type attribute (tagged value). Is there a way how to achieve that (if it can be done, in UML 1.x)?

2) I found something in the forum, but I still can't figure out in what state is support of OCL in regards to UML Profile modelling. I mean OCL editor, validation against OCL rules, etc.

Thank you

written by Jick Yeung on April 13, 2011

Hi Jiri,

1) Tagged value is usually be used with stereotype. When tagged value is defined for stereotype, you can define a tag in enumeration type, and restrict the selection to Yes and No.

To configure stereotype, select Tools > Configure Stereotypes... from the main menu. When editing a stereotype, open the "Tagged Value definitions" tab to define tagged values.

2) That suggestion is still under reviewing. We will reply that post if we decide to support OCL Editor. Thanks for your reminder.

Should you have any questions, please feel free to contact us again.

Best regards,
Jick Yeung

Write comment

Rating

Comment

Enter the calculation result

security code