• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pre condition in Seq diagram

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Do we need to show pre condition in a sequence diagram ?

For all the four use cases given in the assignment "Customer logged in" is a pre-condition, do we need to show that in the sequence diagram ? What is the UML standard ?

Can anyone clarify pls.

Thanks,
BDeb
 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by b deb:
Hi all,

Do we need to show pre condition in a sequence diagram ?

For all the four use cases given in the assignment "Customer logged in" is a pre-condition, do we need to show that in the sequence diagram ? What is the UML standard ?

Can anyone clarify pls.

Thanks,
BDeb



Hi bi,

You are free to disagre with my option, but i really think that show this kind of information in an sequence diagram is not a good aproach. Sequence diagrams must show the interation between the system components, and show in very detail, the time when they occur (this method are called after this another method call).

Just to clear your doubt, sequence diagrams are good for demostrate sequence of operations, an colaborative picture of objects in an given time, to fix some scenario.

They pre-condition 'user must be logged', denotes STATE (logged or not logged), and a activity diagram or an state machine diagram could be more acceptable to demostrate this.

Att,

Ricardo Ferreira - Brazil
reply
    Bookmark Topic Watch Topic
  • New Topic