| Author |
Incorrect/missing UML notation for interface/implementation on component diagram
|
Viggo Navarsete
Ranch Hand
Joined: Feb 02, 2009
Posts: 42
|
|
I have modeled all parts on the component diagram using Component:
- JSP and Managed beans in presentation tier (<<component>>)
- Stateless session beans in business tier (<<component>>)
- DAOs in integration tier (<<component>>)
- External systems (<<component>><<external>>)
I have used Usage symbols with <<use>> between all the components
Should some of the Components be replaced by something else since I've got "Incorrect/missing UML notation for interface/implementation"?
|
 |
Jari Timonen
Ranch Hand
Joined: Jan 16, 2004
Posts: 230
|
|
|
Can you some example how you've modeled them? Maybe link from web? But, please do not post any links to real exam uml pictures.
|
SCJP 5.0, SCJD URLyBird 1.3.3, OCMJEA 5 (SCEA) Factory Homes
|
 |
Viggo Navarsete
Ranch Hand
Joined: Feb 02, 2009
Posts: 42
|
|
If you look at the Staff, SafetyInspection, Map and Defect from this page: http://www.visual-paradigm.com/VPGallery/diagrams/Component.html
That's the way I modelled all the compoents in my component diagram. No interfaces or anything else.
And I used arrows like those from this page between all my components to describe how they related: http://www.visual-paradigm.com/VPGallery/diagrams/Package.html (and used <<use>>)
..one week until I have to resubmit my assignment...
|
 |
Jari Timonen
Ranch Hand
Joined: Jan 16, 2004
Posts: 230
|
|
The problem is that, that notation ( http://www.visual-paradigm.com/VPGallery/diagrams/Component.html ) is called lollipop and requires usage of interfaces. Round thingy is the interface and curvy indicates using that interface.
In the picture: SafetyInspection is concrete component / class that is using Staff class through Inspector interface.
|
 |
Viggo Navarsete
Ranch Hand
Joined: Feb 02, 2009
Posts: 42
|
|
ah, ok..so I'm missing all the interfaces for the components/classes?!
I can understand that I could/must add interfaces for the stateless session beans in the business tier, and for the DAOs in the integration tier, but what about the managed beans in the presentation tier?
Another question: I have divided the component diagram into three boxes, one for each tier (presentation, business and integration tier). I've put the external systems outside the integration tier. So, should the interfaces(round symbol) be between the boxes/tiers, or inside?
|
 |
Jari Timonen
Ranch Hand
Joined: Jan 16, 2004
Posts: 230
|
|
In my opinion managed beans does not need to implement any interface.
Sorry, but I cannot give you all the answers. Just use google and you will see lot's of examples.
|
 |
 |
|
|
subject: Incorrect/missing UML notation for interface/implementation on component diagram
|
|
|