Book a Demo

Author Topic: Generating classes from sequence diagrams  (Read 4997 times)

Jamal Kazmi

  • Guest
Generating classes from sequence diagrams
« on: March 18, 2002, 09:06:02 am »
If I create object representations in sequence diagrams and assign my own stereotypes, is EA supposed to retain those stereotypes?  It didn't retrain the stereotypes that I had defined for my object.

Also as I create my objects in sequence diagrams, does EA automatically generate the classes for their stereotypes? If not, do I have to manually create them?

I did copy the objects from teh sequence diagrams and pasted them on the logical diagrams (thus creating a link). Is this the right way to create classes in EA?

Thanks

sparks

  • EA Administrator
  • EA User
  • *****
  • Posts: 691
  • Karma: +4/-2
    • View Profile
Re: Generating classes from sequence diagrams
« Reply #1 on: March 20, 2002, 05:06:45 am »
Hello,

If you create an object and assign a new stereotype to the object, it does not automatically become a global stereotype that appears in the dropdowns.  The list of stereotypes in the dropdown is defined in the stereotype reference screen.

Currently EA does not automatically generate classes from sequence objects, usually the class is generated in the logical diagrams and then copied/dragged into the sequence diagram.  However we are willing to add features that would work as you have suggested, if there was a user need for them.  Could you provide any details on how you would like to see this working.

regards,
 Paul Mathers

EA_Nj

  • EA User
  • **
  • Posts: 48
  • Karma: +0/-0
    • View Profile
Re: Generating classes from sequence diagrams
« Reply #2 on: March 20, 2002, 02:25:08 pm »
Actually I tried doing that while creating a demo for a potential customer.  The process you had outlined seemed too cumbersome and error prone.

In my previous project I had used "that other UML product" ;> and the ability to generate classes through sequence diagrams seemed very intuitive and helpful.  

The timeframes during which I've had to create UML documentation has not been more than 2 weeks long.  Automatic generation of classes based on sequence diagrams will tremendously help create class diagrams rapidly IMHO.

Hope this helps.

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Generating classes from sequence diagrams
« Reply #3 on: March 20, 2002, 05:32:02 pm »
Hi Jamal,

I have implemented the ability to create a new class while within the Sequence diagram. The process is as follows:

Assuming you have created a sequence diagram with an oject in it ...

Right click on object and select 'Set Object Classifier'
In the Classifier dialog, press 'New' to get new element dialog
Fill in name etc. and a generalizable type (eg. Class or Interface)
Press OK
The sequence object will now have a classifier of the new type and the new class will be added to the package which contains the sequence diagram.

This will be released in the next update - probably early next week - look for a build number higher than 475.

Geoff Sparks