Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Assignment Component Diagram  RSS feed

 
Asif Fraz
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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?
 
K. Tsang
Bartender
Posts: 3639
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • 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: 17
  • Mark post as helpful
  • send pies
  • 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: 3639
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!