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

Attributes and Associations

 
Sanz Vai
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nobody seems to be answering to this question, posting again:::::
I have noticed in many class diagrams (in books etc) that an attribute representing a Seat is not shown in a class say Plane. For eg. goto the following link:
http://bdn.borland.com/article/0%2C1410%2C31863%2C00.html#classdiagrams
Why doesn't the Customer class have an attribute of type Order??? Or a List/Collection of Orders?
 
Ramon Gill
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sanz,
Order is not shown as an attribute of Customer because it is regarded as 'noise' within the diagram, in the same way as 'get' and 'set' methods are also not shown. An Order attribute within Cusotmer is implied by the association between Customer and Order and therefore does not need to be shown.
Ray
SCJP, SCWCD, SCBCD, SCEA (part 1), IBM-484
 
Sanz Vai
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ramon. I was a bit confused about this. I just found out that this is called Scafolding Code and since the tools can generate them, are not ususally shown in class diagrams.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic