How to Understand and Describe UML Class Diagrams?

  • Thread starter Thread starter XodoX
  • Start date Start date
  • Tags Tags
    Class Diagram
AI Thread Summary
The discussion revolves around difficulties in interpreting two UML class diagrams. The first diagram features a "Bird" class with subclasses "Flycatcher" and "Cardinal," while the other two classes are speculated to be "Tree" and "Seed." Participants express confusion about the meanings of the elements and relationships depicted in the diagrams, particularly regarding the dashed lines, which are identified as indicating dependencies rather than co-requisites or pre-requisites. The second diagram includes elements labeled "aSim:Sim" and "simList:Object," prompting questions about the sequence of events and message flow. Suggestions are made to seek out UML documentation and resources for better understanding, emphasizing the importance of research skills in mastering UML concepts.
XodoX
Messages
195
Reaction score
0
I'm having difficulties with two UML class diagrams.

That's the first one:

http://img821.imageshack.us/i/umlv.png/

I can't really read the words next to bird, but it looks like "Tran" and "Saad" ( some kind of bird?) I don't really know how to explain this? You're supposed to describe it. Flycatcher and Cardinal are subclasses of bird, and the two others are, I don't know, some other class of birds?

Then, there's this diagram:

http://img193.imageshack.us/i/uml1.png/

How do I describe what this diagram illustrates? The first box says "aSim:Sim" The other one "simList:Object". I don't get it.
 
Technology news on Phys.org
XodoX said:
I can't really read the words next to bird, but it looks like "Tran" and "Saad" ( some kind of bird?) I don't really know how to explain this? You're supposed to describe it. Flycatcher and Cardinal are subclasses of bird, and the two others are, I don't know, some other class of birds?

Wow that's hard to read. Best I can make it out, and using a bit of logic, it's "Tree" and "Seed". You remember what the dashed arrow means?

XodoX said:
How do I describe what this diagram illustrates? The first box says "aSim:Sim" The other one "simList:Object". I don't get it.

Do you not have a reference for sequence diagrams? aSim:Sim is in the form name:ClassName. Note the sequence of events. What message starts it off, and what happens as a result?
 
ops, lol, yeah, tree and seed. That's all I have. Nothing else. I think the dashed line means something like "co-requisite", and the other line "pre-requisite". Like, you know, in terms of hierarchy - the dependency.
 
XodoX said:
ops, lol, yeah, tree and seed. That's all I have. Nothing else. I think the dashed line means something like "co-requisite", and the other line "pre-requisite". Like, you know, in terms of hierarchy - the dependency.
Don't think the "co-" and "pre-" thing is true, but the dashed line should indeed mean "dependency". So a Bird class depends on the Tree and Seed classes.

If you don't have any documentation for UML, I strongly suggest you find one. There's some good books published for it, and of course there's a lot of information on the web.

For example, this site seems to have a useful "UML Reference Card":

http://www.holub.com/goodies/uml/

A little googling should get you the info you need to understand the symbols (and more). Of all skills that get you far when learning things, research skills are some of the most useful.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Back
Top