• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two Questions about Component Diagram

 
yangp pyang
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working for Part2,but I have two questions now,anyone can help me?

first,
how to use stereotype in Component,for example:
I have an Component which is actually a Class in PetStore,it is a FrontController ,and it is a Servlet ,and it's name is "MainServlet",then how can I describe the three things in one Component?

second,
how detail is needed for my Component Diagram?
My class diagram is finished,it is tech independent,only extend the BDM.
then do I need to add some detail business logic in my Component diagram?
for example in PETSTORE,I have two choice:
1. show a JSP component which named "InventoryListForm" and an htmlAction component which named "InventoryListAction" and a DAO component which named "InventoryDAO" and vo and so on....
and describe each jsp and action and ejb in my diagram as this.
2. use a JSP component which named "webpage" and user a component which named "HTMLAction" and a component which named "ValueListHandler" and so on.
and use this to describe all Use Cases.

if I choice 1,the Component diagram will be very very large.and i think it is too detail.
if I choice 2,then I think I cant describe many interaction between the client and the system in Use case.

I need help..
thanks a lot
 
Rashmi Razdan
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yangp,
first,
how to use stereotype in Component,for example:
I have an Component which is actually a Class in PetStore,it is a FrontController ,and it is a Servlet ,and it's name is "MainServlet",then how can I describe the three things in one Component?

If i would be u , i wold name it as << FrontControler servlet>>

For second, I would go for 2)
suppose If u have ten components genrealised ones , in some cases ,u won't use all of them in all digs. and u may use specific ones from class dig. applicable to that seq dig.

Is it specified anywhere that we shud use only the components in sequence dig??? and all of them?
Since i have not submited my asignment yet, may be u shud take confirmation from experts.

rashmi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic