IntelliJ Java IDE
The moose likes Associate Certification (SCJA/OCAJ) and the fly likes Doubts in UML .... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Associate Certification (SCJA/OCAJ)
Reply Bookmark "Doubts in UML ...." Watch "Doubts in UML ...." New topic
Author

Doubts in UML ....

Eusebio Floriano
Ranch Hand

Joined: Mar 07, 2004
Posts: 235
The first doubt is if a composition association can have direction navegation too. if yes, both directions ?

The second doubt is if the only relationship between an class and a interface is "implements", i mean, a traced line with one triangle. If i represent a stereotyped interface (a circle), may i use a simple association to represent "implements" or i must use a traced line with one triangle ?

Regards,


SCJP 1.4 / 5.0 - SCBCD 1.3 - SCWCD 1.4 - IBM 484
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
The first doubt is if a composition association can have direction navegation too. if yes, both directions ?

The directions can be specified by the "arrow".


The second doubt is if the only relationship between an class and a interface is "implements", i mean, a traced line with one triangle. If i represent a stereotyped interface (a circle), may i use a simple association to represent "implements" or i must use a traced line with one triangle ?

The stereotyped interface is out of the scope of SCJA.

Nick


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Eusebio Floriano
Ranch Hand

Joined: Mar 07, 2004
Posts: 235
Nick,



The directions can be specified by the "arrow".


Actually, i mean if it is allowed to use directions in the same composition
association. something like this "A #<------>B",
where "#" represents composition, "A" and "B" represent classes and, "<" and ">" represent arrows.



The stereotyped interface is out of the scope of SCJA.


You are mistaken. You are supposed to recognize stereotyped interface (as cicle) in classes diagram.
Any way, is something like this allowed ?
"0---A", where 0 represents an interface, "---" represents a solid line and, A represents a class.


Regards,
Aleks V. Pascoal
Ranch Hand

Joined: Apr 21, 2002
Posts: 72
1) Yes, you can specify direction using open arrow. But, I'm almost sure that it doesn't make sense to put the arrow at the same side of the diamond, because composition means that parts have they're life cycle associate with the hole, so, the role must have access to its parts.

2) When you use "lollipop" notation (circle for interfaces), use a simple line to connect to classes, and that wil indicate the relation implements.
Eusebio Floriano
Ranch Hand

Joined: Mar 07, 2004
Posts: 235
Thx,
it was exactly what i would like to know.

Regards,
 
 
subject: Doubts in UML ....
 
Threads others viewed
Doubt
Doubt In MVC..
Doubt in Collections
Doubt
Component diagrams - dependency and association?
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture