• 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

Assignment Component Diagram

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

I am making my component diagram for the assignment.

I have a question that if i make a component and defines a provided interface, is it necessary to define another component defining the corresponding required interface? Or is it OK without the corresponding required interface defined?
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The component diagram should able to see what components are in each tier.

Normally for every interface should have something implementing or using it.

As for your question "is it necessary?" I would say no but I would recommend it. Or just say it as a component (a box) rather than an interface (lollipop notation).
 
Asif Fraz
Greenhorn
Posts: 29
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok thanks K. Tsang.

I believe I need to further work on it.

I have another related question.

In Modelio the component icon symbol is coming in the left hand side upper corner, but in UML it is mentioned that it should be on the right side upper corner. What to do about it?
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Asif Fraz wrote:In Modelio the component icon symbol is coming in the left hand side upper corner, but in UML it is mentioned that it should be on the right side upper corner. What to do about it?



So you using Modelio? Good choice I liked using it very much but sometime something isn't obvious or hard to find. Yet google is your friend for that

Regarding component diagram, make sure you are using UML 2. The v2 diagram has that icon of the top right. The v1 on the other hand has that 2 bar sticking on left.

When in doubt the sterotype "<<component>>" is your best bet.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic