Book a Demo

Author Topic: UML Profile: Stereotype&use of "Default Direction"  (Read 3756 times)

Thomas H.

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
UML Profile: Stereotype&use of "Default Direction"
« on: October 22, 2008, 11:07:50 pm »
Hello,

I would like to create an UML Profile that includes a specific associations "MyAssociation" between the two stereotypes "ExampleStereotype1" and "ExampleStereotype2".

  Stereotype 1: ExampleStereotype1 extends Class
  Stereotype 2: ExampleStereotype2 extends Class
  Stereotype 3: MyAssociation extends Association
                The metaclass "Association" defines
                a standard direction "Source -> Destination".

1. Import Profile into an EA project
2. Create Ex1 (Stereotype "ExampleStereotype1")
3. Create Ex2 (Stereotype "ExampleStereotype1")
4. Create Assoc1 (Stereotype "MyAssociation") between
    "Ex1" -> "Ex2"

Result: The "Default Direction" as defined by the Metaclass is not used, meaning EA shows only
    "Ex" -- "Ex2"
instead of
    "Ex" -> "Ex2"

Am I making a mistake?

Thomas

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: UML Profile: Stereotype&use of "Default Direct
« Reply #1 on: October 23, 2008, 12:54:27 am »
I think that you can do this by defining a quicklink matrix. That does not solve your problem when creating a link from a toolbox (I believe) but it will provide a quick way of defining a directed link of a given type. As for the toolbox case, you might be reduced to writing and add-in.
No, you can't have it!

Thomas H.

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: UML Profile: Stereotype&use of
« Reply #2 on: October 23, 2008, 09:11:51 pm »
Hello Midnight,

the problem is "solved" by adding the following elements and stereotypes to my profile:

- defined the stereotype "Example1" <<extends>> Class
- defined the stereotype "Example2" <<extends>> Class

- defined the stereotype "Example1usesExample2"
   (extends Association)  that I want to use for the association
  "Ex1" (stereotype Example1) -> "Ex2" (stereotype Example2)
  where "->" shall be the "Example1usesExample2" association.

- defined a "QuickLink" entity with the stereotype "document" and
  - added "QuickLink rules" as described in the EA online help

The result: when I use the quicklink feature to "draw" an
association between the entities "Ex1" and "Ex2"
then I get the an entry "Add Ex uses" (as defined in the "QuickLink" entity in the profile) in the context menu. Using this entry means to create a new association with the stereotype "Example1usesExample2" between Ex1 and Ex2.

The "QuickLink" feature is well described in the EA online help.

midnight: Thank you for the hint. One thing I have to mention:
the "realtionship matrix" (Menu "View" -> "Relationship Matrix") and the "QuickLink" feature seem to be independent.

Thomas
« Last Edit: October 24, 2008, 07:51:09 pm by snowy »