Book a Demo

Author Topic: Problems defining uml profiles  (Read 2463 times)

Mischa81

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Problems defining uml profiles
« on: April 13, 2006, 10:55:08 am »
Hi,

since two weeks I'm testing EA professional. I need to create a comprehensive uml profile. Doing this i have two major problems.

1. Packages
Due to the large number of stereotypes at my profile I would like to structure them using different packages (marked as profiles). The profiles are dependent on each other. So I'm able to specialize a stereotyp which is declared in another package. The problem is:
The general stereotyp (contained in a foreign package) isn't defined at the genearted profile-file (myProfile.xml).

2. Transitions
The profile extends the semantic of a state machine diagramm. I use stereotypes based on states and transitions. extending states works fine but there're problmes extending a transition:

It seems the transition isn't representet as defined at the UML2 superstructure specification. Instead it's available as a connector of type stateFlow (custom EA notation?). So I'm not able to change the associations (of the Metaclass Transition) to the other  Metaclasses like Trigger. Can anybody tell me how I can change the presentation of the attributes TRIGGER, GUARD AND ACTION, of the constraint tab of EA transitions. Please don't tell me that no one should change the base semantic of the metaclass elements, i even know. I just want to narrow down the values you can type in at the GUARD field. My goal is to restrict the guard conditions on a few I have defined at a enumeration.

I hope you can help me, thx.
« Last Edit: April 13, 2006, 10:58:23 am by Mischa81 »

tomte

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
  • Reverse Engineering
    • View Profile
Re: Problems defining uml profiles
« Reply #1 on: December 17, 2007, 05:26:56 am »
Quote
The problem is:
The general stereotyp (contained in a foreign package) isn't defined at the genearted profile-file (myProfile.xml).


(Acc. to Help pages "Creating Profiles" etc.)

I just tried it myself:

Given:
- an imported profile "GivenProfile" having
- - a stereotype "GivenInterface" extending metaclass "Interface"

Goal:
- another profile "ExtendingProfile" having
- - a stereotype "InternalService" extending "GivenInterface" extending "Interface"

Steps done:
- within the same .eap
- ProjectBrowser | NewModel (root node)...: "ServiceInterfaces"
- - NewView: "Profiles"
- - - AddDiagram: "Profiles"
- - - - Toolbox | Profile:
- - - - - dragged the Profile-icon to diagram "Profile", name = "ServiceInterfaceProfile", stereotype = "profile" | ok =>
- - - - - - an empty UML-Package "ServiceInterfaceProfile", stereotyped "profile", on the diagram
- - - - - - a ProjectBrowser-Package "ServiceInterfaceProfile", stereotyped "profile" having
- - - - - - - an empty CompositeStructure-diagram "ServiceInterfaceProfile" (auto-generated)
- - - - - - - - dragged the Stereotype-icon to diagram "ServiceInterfaceProfile"
- - - - - - - - - Name: "InternalService"
- - - - - - - - - Stereotype: "stereotype"
- - - - - - - - dragged the Metaclass-icon to diagram "ServiceInterfaceProfile" => "Create New Metaclass" dialog:
- - - - - - - - - IncludeExtended: Yes
- - - - - - - - - Stereotype: "stereotype"
- - - - - - - - - ReferenceElements: empty ("GivenInterface" does NOT show up)
- - - - - - - - - ReferenceConnectors: empty
- - - - - - - - - OK-button => NOT added to the diagram => trying with ReferenceElements = non-empty:
- - - - - - - - dragged the Metaclass-icon to diagram "ServiceInterfaceProfile" => "Create New Metaclass" dialog:
- - - - - - - - - IncludeExtended: Yes
- - - - - - - - - Stereotype: "stereotype"
- - - - - - - - - ReferenceElements: Interface ("GivenInterface" does NOT show up)
- - - - - - - - - ReferenceConnectors: empty
- - - - - - - - - OK-button => added to the diagram as "Interface" having stereotype "metaclass"

Diagram "ServiceInterfaceProfile" still has only
- the stereotype "InternalService"
- the metaclass "Interface"
- no associations between them
- no inheritance on "GivenInterface".


So I think:
- If "InternalService" is to extend the _metaclass_ "Interface" directly:
- - drag an "Extension" (not inheritance) arrow from "InternalService" to metaclass "Interface"
- If "InternalService" is to extend the _stereotype_ "GivenInterface":
- - EA | View | Ressources: ON
- - from Resources panel find and drag the _stereotype_ of "GivenInterface" onto the diagram (but how????)
- - drag an inheritance arrow from stereotype "InternalService" to _stereotype_ "GivenInterface".

So, after I have only imported the "GivenProfile" having "GivenInterface":
How to drag its stereotype to my diagram or anyhow inherit it?

Sincerely Yours
tomte