Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sequnce diagrams

 
rethna pillai
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we need to show all the objects that we created in the class diagrams in the sequence diagram.
Appreciate your reply .
 
Balbhadra Singh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I guess class diagram would just show classe not objects. In a sequence i would show all the classes which, participate in execution of a use case.
Regards,
Balbhadra
 
Nishant Anshul
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sequence diags r dynamic diags, so they do show objects. In fact u can show both classes/objects separated by colon.....its ur call.
For a particular flow f1 and if alternate flow f2 is not too complex, u generally show the flow f1 which may or may not have all the classes of ur class diagram. e.g consider an example
f1 = usecase(login flow) + usecase(view presentation)
say my app has a custom ACM which does authentication and delegates to ReqProcessor for authorisation.
(assuming u decide to mingle framework classes with businessdomain...just assume ..okay)
ur class diag will show both ACM and ReqProcessor but seq diag will show ACM call only since ur business comp is only concerned with ACM and not consequent calls from thereon, it may excludes ReqProcessor..okayyy
unless it is genuinely dealing with reqprocessor...
so IMO, the only criteria being if ur obj in seq diag r making calls to those classes or not.
...may be that helps u
rgds
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic