How to Understand and Describe UML Class Diagrams?

  • Thread starter Thread starter XodoX
  • Start date Start date
  • Tags Tags
    Class Diagram
Click For 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.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 48 ·
2
Replies
48
Views
10K
  • · Replies 43 ·
2
Replies
43
Views
4K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K