Talk:Class diagram
This is the talk page for discussing improvements to the Class diagram article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
Archives: 1 |
This article has not yet been rated on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||||||||||||
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
Please add the quality rating to the {{WikiProject banner shell}} template instead of this project banner. See WP:PIQA for details.
|
General Relationship - Dependency
The Car-Wheel example seems a Containment rather than a Dependency. There is even a Car-Carburator example above. Why the relationship with the wheel is different from the one with the carburator ? (195.144.71.214 (talk) 05:42, 1 April 2009 (UTC))
- I agree; intuitively we would say "a car has wheels", which is aggregation; rather than "a car uses wheels" which would be a dependency.
- Also take the point about the carburetor. The diagram in the article describes this relationship as composition - but I would have thought the life-line of a carburetor is not implicitly tied to the life-line of the car (which would be the definition of composition), and so this too would be aggregation.
- Ultimately: I agree. Would wait for more responses before changing anything. 62.25.109.195 (talk) 15:55, 2 April 2009 (UTC)
- It definitely should be changed, maybe a relationship between a Car and DrivingInstruction could be used? could be a method public void drive(DrivingInstruction instruction). —Preceding unsigned comment added by 92.74.7.123 (talk) 07:49, 21 July 2010 (UTC)
Difference between aggregation and composition
I had a very good example of this during some training recently. If you consider a Human, and its Heart and Brain, it is clear that Human has a Heart and has a Brain. However, at present at least, a Heart can be removed from a Human without destroying either (and so the lifeline of Heart is not tied to the lifeline of Human) whereas a Brain cannot be removed without destroying the Human (and so the lifeline of Brain is dependant on the lifeline of Human).
If someone can word that better I think it would be a nice example to supplement or replace the current one. 62.25.109.195 (talk) 09:21, 7 April 2009 (UTC)
Can there be multiple associations between two classes
What if I have two classes and each knows the other one. For example a Plane know the current airport and the airport knows the plan. Should I then draw two connection arrows -- one from plane to airport and another vice versa. Would that be correct UML?
Citations
I am curious about the Wikipedia Rule Class as applied to this instantiation of this article on Class Diagrams. There is a box saying the article needs more citations for verifiability. I see three citations, Ambler, a reference card, and an OMG document.
My questions is, why is this not sufficient for citations?
I've not read any of the referenced works, but I can comment on them. Ambler is a popular, though perhaps weak writer, but if he wrote an article or book on class diagrams, then I'm confident it touches on all elements of what is mentioned here. The second reference, probably a $5 reference card from a bookstore, I'm confident has all the correct syntax and every diagram in this article. The third, the OMG document, well, the Object Management Group owns the specification and they will have all technical information found here in the document. In other words, I think all three documents, individually, basically verify the entire article.
Why is there a need for anything else?
Admittedly, all of the examples appear to be either original research where some person with knowledge of a class diagram is trying to explain by example with car parts and people. Or maybe it is just someone restating what was read in the existing referenced citations using car parts and people as an example.
Can anyone tell me specifically where or what additional citation needs to be? I am confident that I have a book on my shelf that can be used to cite anything needed here for this article, I just don't understand which citations are required. WallClimber17 (talk) 03:55, 21 August 2011 (UTC)