Author Topic: UML profiles  (Read 2384 times)

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
UML profiles
« on: May 06, 2005, 11:45:10 am »

Need information on how to create UML profile - tutorial with an examples would be great as other information. Are any profile changes in the UML2?
Also, is it possible somehow to use UML profiles with EA? if so, how.

Got into trouble to set up UML profile, so any help is appreciated.
registertm everything to SparX

thomaskilian

  • Guest
Re: UML profiles
« Reply #1 on: May 06, 2005, 12:38:41 pm »
Hi,
the EA Help file is okay. I managed to set up my profile following the described steps.
1) Create a package to contain your profile (I have some kind of dummy repository for that).
2) Export the profile via the Package context menu.
3) Import it in the Ressource view.

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: UML profiles
« Reply #2 on: May 06, 2005, 01:29:36 pm »

I also would like to read how profiles are defined (not depending on any UML tool) - more theoretical stuff

if you know background, it's only a matter of technique to implement in a tool
registertm everything to SparX

ulb

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: UML profiles
« Reply #3 on: May 11, 2005, 07:42:06 am »
Hi

I'm also in the situation of creating my own profile and I have some questions about creating profiles, too.

1. How can I define an association/aggregation/composition in my profile?
2. How can I define attribute definition for creating attributes in a class of a predefined type?

Does anyone have a tutorial with more information?
I would help to complete it with owne experiences.

Thanx.

Erny

thomaskilian

  • Guest
Re: UML profiles
« Reply #4 on: May 11, 2005, 08:04:12 am »
Quote
I also would like to read how profiles are defined (not depending on any UML tool) - more theoretical stuff

if you know background, it's only a matter of technique to implement in a tool

http://www.uml.org/#UMLProfiles is probably the best start.

thomaskilian

  • Guest
Re: UML profiles
« Reply #5 on: May 11, 2005, 08:18:58 am »
Quote
Hi

I'm also in the situation of creating my own profile and I have some questions about creating profiles, too.

1. How can I define an association/aggregation/composition in my profile?
2. How can I define attribute definition for creating attributes in a class of a predefined type?

Does anyone have a tutorial with more information?
I would help to complete it with owne experiences.

Thanx.

Erny


Good question indeed. I played around and was not able to produce any association. Maybe Sparx could advise how to create the metaclasses from the EP Business Extensions using the profile technique. The current documentation just let me create simple elements adorned with tags (what was okay for me so far).

ulb

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: UML profiles
« Reply #6 on: May 16, 2005, 07:38:18 am »
Hi

I tried to find out how EA and profiles work.
Here are my results.

For defining a profile you use basical two elements.
1. <<Metaclass>> for defining what element type you like to create later in your model.
2. <<Stereotype>> for defining what stereotype the element should have.

Now you can connect 0..* stereotypes to 1 metaclass with the "Extension" relationship. But you can also connect 0..* metaclasses with 1 stereotype. Each "Extension" relationship will create one entry in UML profile.
If you inherit one stereotype from another then you will get the same entries in the profile for this stereotype like the base stereotype.

The relations <<appl>> and <<tagged value>> are not used (as far as I know).

These are my experiences.

Cheers, Erny

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2529
  • Karma: +33/-2
    • View Profile
Re: UML profiles
« Reply #7 on: May 16, 2005, 11:48:50 pm »
Hello Erny,

- The <<apply>> dependency is simply for documenting your model: you can draw a package diagram showing which of your profiles are applied to which of your packages. If it's useful to you :-/

- The Tagged Value connector probably needs documenting :-[ Draw a TaggedValue connector from StereoA to StereoB and give it a name ConnectorC. When you apply StereoA to an element, it will have a tagged value named ConnectorC with a "..." button that brings up a dialog showing you all the elements in the model with the StereoB stereotype. Again, if it's useful to you :)

HTH,

Neil
The Sparx Team
support@sparxsystems.com

thomaskilian

  • Guest
Re: UML profiles
« Reply #8 on: May 17, 2005, 04:01:50 am »
Hi Neil,
your answer still does not solve the riddle how to create an association in the profile (like you have in the EP profile).

ulb

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: UML profiles
« Reply #9 on: May 17, 2005, 04:18:55 am »
Hi Thomas

An association can be defined by using an "Association" as Metaclass. Stereotypes as with normal classes.

Erny

ulb

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: UML profiles
« Reply #10 on: May 17, 2005, 04:37:33 am »
Another question ....

... how can I define an attribute of a specific type?

All attributes are of type string.

Thanx, Erny

thomaskilian

  • Guest
Re: UML profiles
« Reply #11 on: May 17, 2005, 04:39:00 am »
Thanks Erny,
last time I tried I did not realize the Association ELEMENT :-[ in the left part of the metaclass creation box. Thanks for the hint :)

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: UML profiles
« Reply #12 on: May 19, 2005, 05:35:04 am »
Have found good article about UML profiles:
"An introduction to UML Profiles" by Lidia Fuentes and Antonio Vallecillo, University of Malaga, Spain

don't have link, but google easily will find it

However, don't know, how article is close to the UML2
« Last Edit: May 19, 2005, 05:36:40 am by SF_lt »
registertm everything to SparX