This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes (part2)one to one or one to more relationship between use case and sequence diagram?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "(part2)one to one or one to more relationship between use case and sequence diagram??" Watch "(part2)one to one or one to more relationship between use case and sequence diagram??" New topic
Author

(part2)one to one or one to more relationship between use case and sequence diagram??

hugh phoonix
Greenhorn

Joined: Mar 03, 2004
Posts: 11
Hi, all

when I draw sequence I find there are too many sequence diagrams and I am afraid my submission would be bigger than 1M. For example, I draw more than 4 diagrams for "prepare itinerary", including: 1. basic flow for customer, 2. basic flow for travel agent, 3. alternative flow for customer. 4. alternative flow for travel agent...
Parag Doshi
Ranch Hand

Joined: Jun 29, 2004
Posts: 317
Originally posted by hugh phoonix:
Hi, all

when I draw sequence I find there are too many sequence diagrams and I am afraid my submission would be bigger than 1M. For example, I draw more than 4 diagrams for "prepare itinerary", including: 1. basic flow for customer, 2. basic flow for travel agent, 3. alternative flow for customer. 4. alternative flow for travel agent...


How is the basic flow for customer different than travel agent? Maybe, there is a way you can consolidate the sequence diagram based on a 'user' action rather than 'customer' , 'travel agent', unless, you have identified different behavior for these 2 types of users.

Parag
Ramon Gill
Ranch Hand

Joined: May 15, 2003
Posts: 344
The number of sequence diagrams isn't important. Harish mentioned that he did 10 sequence diagrams.

Ray
Tomi Tuomainen
Ranch Hand

Joined: Jun 13, 2004
Posts: 86
I think somebody passed here in the forum with just four diagrams (for the use cases provided). I have a feeling that sequence diagrams is not the part that people usually fail for.

Tomi
James J Xu
Ranch Hand

Joined: Jul 07, 2004
Posts: 53
Originally posted by Parag Doshi:


How is the basic flow for customer different than travel agent? Maybe, there is a way you can consolidate the sequence diagram based on a 'user' action rather than 'customer' , 'travel agent', unless, you have identified different behavior for these 2 types of users.

Parag


Parag,

Customer interacts with web tier/JSP/Servlet while Travel agent interacts with Swing, do you think we should model this difference in both Sequence diagram and Component diagram?

Thanks,
James
Parag Doshi
Ranch Hand

Joined: Jun 29, 2004
Posts: 317
Originally posted by James J Xu:


Parag,

Customer interacts with web tier/JSP/Servlet while Travel agent interacts with Swing, do you think we should model this difference in both Sequence diagram and Component diagram?

Thanks,
James


I have always been of that opinion that if we get the client tier (jsp, swing etc) to interact with the web tier (servlet, controllers etc)in a uniform way, then all we need to show is a client tier stereotype interacting with the web tier. That makes the diagram readable and simple. Although, there are many who would like to see jsp components in a component diagram and also in seq diagram. It all depends on what level of detail do you wish to show the archictecture. As it all comes down to personal preferences and what we believe is the best view of the system we are architecting. There are no right or wrong ways here.

Parag
James J Xu
Ranch Hand

Joined: Jul 07, 2004
Posts: 53
Originally posted by Parag Doshi:


I have always been of that opinion that if we get the client tier (jsp, swing etc) to interact with the web tier (servlet, controllers etc)in a uniform way, then all we need to show is a client tier stereotype interacting with the web tier. That makes the diagram readable and simple. Although, there are many who would like to see jsp components in a component diagram and also in seq diagram. It all depends on what level of detail do you wish to show the archictecture. As it all comes down to personal preferences and what we believe is the best view of the system we are architecting. There are no right or wrong ways here.

Parag


Parag,

Thanks for the quick reply.

This is a good choice. But, if both jsp client and swing client interact with web tier, should we specify in web tier the different controllers(servlet) to different client, and use different design patterns?

James
Parag Doshi
Ranch Hand

Joined: Jun 29, 2004
Posts: 317
Originally posted by James J Xu:


Parag,

Thanks for the quick reply.

This is a good choice. But, if both jsp client and swing client interact with web tier, should we specify in web tier the different controllers(servlet) to different client, and use different design patterns?

James


Yeah, thats one of the ways to do it too. Also see the thread started by Tomi with regard to Swing Application directly interacting with either Web Tier or EJB Tier.

Parag
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: (part2)one to one or one to more relationship between use case and sequence diagram??
 
Similar Threads
part 2: alternative flows
use cases and sequence diagrams.
passed SCEA with 99%
Passed Part 2/3 - 99%
Passed Part II & III