Book a Demo

Author Topic: Calss Diagram to Sequence Diagam  (Read 6221 times)

woodz

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Calss Diagram to Sequence Diagam
« on: January 10, 2006, 06:36:56 am »
Hello,

is there any automation support to build a sequence diagram from a class diagram in EA?
Maybe I can imagine the creation of the lifelines...


thanks

WOODZ

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Calss Diagram to Sequence Diagam
« Reply #1 on: January 10, 2006, 01:20:50 pm »
Hard to imagine how this would ever work  :-/
Its a bit like asking a CAD package to automatically develop a user guide from a machine blueprint.

bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

danlai

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Calss Diagram to Sequence Diagam
« Reply #2 on: January 15, 2006, 08:21:03 pm »
No need to imagine, just taste it from Java Studio Enterprise.

Kevin G. Watson

  • EA User
  • **
  • Posts: 217
  • Karma: +0/-0
  • I love EVERYTHING including Microsoft
    • View Profile
Re: Calss Diagram to Sequence Diagam
« Reply #3 on: January 16, 2006, 11:50:54 pm »
Hi'ya

Have'nt tasted the Java thingie

But, each operation a sequence diagram? Each operational call a message?

Still not going to illustrate computational bits of the operations.

I would have thought that an action / activity diagram would be more appropriate

Stay tough
Kevin

thomaskilian

  • Guest
Re: Calss Diagram to Sequence Diagam
« Reply #4 on: January 17, 2006, 08:11:42 am »
Sounds a bit like reading tea leaves

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Calss Diagram to Sequence Diagam
« Reply #5 on: January 17, 2006, 02:05:24 pm »
Sounds more like making lots of cups of tea with leaves in that nobody wants or needs to read.

b :-X
« Last Edit: January 17, 2006, 02:05:48 pm by sargasso »
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

Kevin G. Watson

  • EA User
  • **
  • Posts: 217
  • Karma: +0/-0
  • I love EVERYTHING including Microsoft
    • View Profile
Re: Calss Diagram to Sequence Diagam
« Reply #6 on: January 17, 2006, 05:52:39 pm »
Hi'ya folks, what about if it's virtual tea, legacy tea.

No Mac version of Enterprise Architect; yet apparently a marketable product for the Linux market.

By examining instance exceution patterns, user productivity enhancements may be machine learnt and optermised.

Stay tough
Kevin


PS.
Think

class MyMainClass : Object
void main(String[] Args)
System.IO.Console("Hello !!! Its now " + DateTime.now)
Return
endClass

I suppose couldn't be a few thousand MS .Net 2 CLR and Framework.... like a java machine... classes.... eventually MyMainClass.Main("Hey dudes") completes with different performance metrics.

You don't want to know, perhaps thats whats wrong with software production.  Lets hope, else some folkees in when you guess, 2015...... gesture modelling on the XBox

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Calss Diagram to Sequence Diagam
« Reply #7 on: January 17, 2006, 06:41:33 pm »
Quote
I suppose couldn't be a few thousand MS .Net 2 CLR and Framework.... like a java machine... classes.... eventually MyMainClass.Main("Hey dudes") completes with different performance metrics.
 
You don't want to know, perhaps thats whats wrong with software production.  Lets hope, else some folkees in when you guess, 2015...... gesture modelling on the XBox


Kevin,

You just killed my Babelfish - could you translate please.

bruce
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Calss Diagram to Sequence Diagam
« Reply #8 on: January 17, 2006, 08:54:16 pm »
You might want to re-read what Java Studio Enterprise does.  It doesn't create Sequence Diagrams from a class diagram.  It does however create it from a Collaboration diagram.  And then you need to order all of the lifelines and messages.

If you want to generate a sequence diagram you'll need more than a class diagram although that's one of the requirements you'll need.
  • Class diagram (to determine what classes should appear)
  • All the calls and messages that need to be drawn.  EA currently gives this via a debug stack trace.
  • For more advanced diagrams you need further information about loops/conditionals.  This can be done by parsing the body.
  • User input.  Otherwise any non-trivial diagrams will be complete rubbish.  EA gives this by allowing the user to specify what is recorded.
Problems.  Each operation a sequence diagram will give very flat sequence diagrams.  Potentially one sequence for each use case.

This whole question reminds me of university, where code always came before design...  ;)

gyoung

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Calss Diagram to Sequence Diagam
« Reply #9 on: January 20, 2006, 02:02:49 pm »
"This whole question reminds me of university, where code always came before design...   "

I thought they called that "Extreme Programming" these days :)

Yeah it sucks, but its only 23 refactors away from being functional.

*not to flame*
I understand the concepts of extreme programming I am referring in specific to many who have the completely wrong idea about how to implement it. i.e. design is a thing of the past, just do it as you write code.

There is a difference between iterative design and no design:)

btw: if you can get this translation to happen I think many programmers will be out of jobs.
« Last Edit: January 20, 2006, 02:05:58 pm by gyoung »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Calss Diagram to Sequence Diagam
« Reply #10 on: January 20, 2006, 04:15:29 pm »
Quote
"This whole question reminds me of university, where code always came before design...   "

I thought they called that "Extreme Programming" these days :)

Yeah it sucks, but its only 23 refactors away from being functional.

*not to flame*
I understand the concepts of extreme programming I am referring in specific to many who have the completely wrong idea about how to implement it. i.e. design is a thing of the past, just do it as you write code.

There is a difference between iterative design and no design:)

btw: if you can get this translation to happen I think many programmers will be out of jobs.
You are so right!

Most people misunderstand Aglie Development - in its many forms...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Kevin G. Watson

  • EA User
  • **
  • Posts: 217
  • Karma: +0/-0
  • I love EVERYTHING including Microsoft
    • View Profile
Re: Calss Diagram to Sequence Diagam
« Reply #11 on: January 21, 2006, 07:51:07 am »
Quote

Kevin,

You just killed my Babelfish - could you translate please.

bruce


Hi'ya Bruce

I'm truely sorry about youre Babelfish  :'(  will think about what I was trying to say and get back to ya.

Stay tough
Kevin

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Calss Diagram to Sequence Diagam
« Reply #12 on: January 22, 2006, 01:25:32 pm »
Quote
btw: if you can get this translation to happen I think many programmers will be out of jobs.

Possibly, but you would still need the programmers to write the actual code so that a sequence diagram can be constructed.  Code also shows more information than sequence diagrams generally do, and is easier to modify as well.

Given all that, the 'programmers' at risk of being out of jobs will be those that create the design from the code.