Book a Demo

Author Topic: Analysis to Design to Code?  (Read 7059 times)

GuyAtManu

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Analysis to Design to Code?
« on: April 20, 2004, 11:56:16 am »
Newbie question warning!

I have gone through the documentation and varios UML tutorial web sites. As I understand it we do use cases and sequence diagrams (for example) to perform the analysis.

Fine.

Now I want to take my analysis and begin moving it to class diagrams. I don't see any easy way of doing this. If I have Thing1 and Thing2 defined in my sequence diagram and Thing1 messages Thing2 with a method called foo(). How can I generate thing1 and thing2 classes with thing2 having a method foo(). Do I have to reenter everything?

Thanks

jps

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: Analysis to Design to Code?
« Reply #1 on: April 21, 2004, 07:29:31 am »
When creating a sequence diagram consider creating the class somewhere first.  Then drag the class from your project browser onto your sequence diagram to create an object.  After having done this you can add operations to the class by adding messages on your sequence diagram.

If you then want to create a separate set of design classes, based on your analysis class model, you can copy and paste from one of your analysis class diagrams to a design class diagram, then select all, right-click, and choose Convert Linked Element to Local Copy.

The longer answer is to consider re-evaluating the analysis and design process you are using.  I humbly recommend Craig Larman’s, Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and the Unified Process (2nd Edition).  In this book he presents a trimmed back version of what the full-blown RUP offers, including not doing a pre-design, yet it is design, "analysis model".  Instead, the artifacts he takes you through go from use cases, domain model, system sequence diagram, operation contracts, collaboration diagrams (design), and a design class model.

Best wishes,

James

Captain_Ding_Dong

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Analysis to Design to Code?
« Reply #2 on: April 22, 2004, 01:55:32 am »
Have a look at Applying Use Cases {Schnider & Winters isbn 0201708531} & Advanced Use Case Modelling  {Armour & Miller isbn 0201615924}.   Thing to beware of UML is not a process, this allows lots of misunderstandings to creep in.  Not to mention loads of half baked books at high prices.

Regards

Derek