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

Doubts in UML ....

 
Eusebio Floriano
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eusebio Floriano
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx,
it was exactly what i would like to know.

Regards,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic