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

Confused about Component Diagrams

 
Dinesh Bhattacharya
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am very confused about what to include in the component diagrams. My class/seq diagrams are set but I am unsure as to what exactly a component is... Can someone point me to examples of J2EE component diagrams that I can use as a model for the SCEA one ?
 
Joseph A Alexander
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can read about Component Diagrams in Martin Fowler's UML Distilled book.
 
Dinesh Bhattacharya
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is how I have designed my component diagrams. I have laid out 5 diagrams
one for each sub-system / package

Flight
Itinierary
Payment
Pricing
Miles
Security

Within each diagram, I represent the individual classes as components.
When I have to reference a class in other diagram, I just refer to the subsystem name and proceed...

Is this the right approach ? Please reply asap, I am going to submit within 24 hrs...
 
Joseph A Alexander
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I cannot validate your approach and I should not. Sorry.

Please refer to Case Study in the Cade Roberts SCEA Study guide.

Component diagrams should have only Components (Ex: J2EE components like EJB, JSP, Servlets etc), J2EE/Core Java Patterns (like DAO, Service Delegate etc), Reference to other Subsystems as you have mentioned and should clearly depict the flow between these components.

Hope this helps.
 
Dinesh Bhattacharya
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thanks for the response. my main question was - is it ok to show subsystems in a component diagram and is it ok to dissect the large component
diagram into smaller units for the SCEA exam....

Looks like I'm on on the 1st question
 
Paul Codillo
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dinesh Bhattacharya:
Ok, thanks for the response. my main question was - is it ok to show subsystems in a component diagram and is it ok to dissect the large component
diagram into smaller units for the SCEA exam....

Looks like I'm on on the 1st question

It's ok to show subsystems and dissect large components as long as your diagrams would not appear to be very confusing. You may also put additional explanations in your assumptions documents. Keep your component diagrams clear, concise, yet simple.
 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following link may help
http://www-128.ibm.com/developerworks/rational/library/dec04/bell/
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic