class-diagram

Differences between a conceptual UML class diagram and an ERD?

流过昼夜 提交于 2019-11-27 19:08:34
If I create a conceptual class diagram such that each class captures 'name' and 'attributes' but not 'operations', have I not basically created what would be otherwise considered an ERD? I'm trying to gain an understanding of what the differences are between creating a conceptual class diagram as I have described versus calling it a ERD? If these are still two different animals, can somebody please explain what the differences are? There´s little difference in the expressiveness of both (if we just focus on the attributes, classes and associations part) if you use Extended Entity Relationship

How to describe a contained map in UML class diagram?

落爺英雄遲暮 提交于 2019-11-27 15:27:33
I have a MyServer class that contains a Map whose keys are MyClientType objects and whose values are MyClient objects. I'd like to depict this relationship in a class diagram but I can't figure out a clean way to do that. Kru You can use a qualified association: ┌──────────┐ 1 ┌───────┐ │ MyServer │Key│───────────│ Value │ └──────────┘ └───────┘ See: http://etutorials.org/Programming/UML/Chapter+6.+Class+Diagrams+Advanced+Concepts/Qualified+Associations/ (cause it is hard to draw using ASCII) Note also that a qualified association changes the multiplicity: ┌──────────┐ 0..* ┌───────┐ │

What does a diamond sign signify in UML class diagrams?

橙三吉。 提交于 2019-11-27 09:11:01
问题 Consider the below two diagrams. The top one contains a plain arrow at the right end, and the bottom one contains an arrow with a diamond at the left end and a plain arrow at the right end. The great book GoF has usages of both of these two kinds of diagrams. I want to understand what does the diamond signify in the second case, and which one of these two gives a stronger association between Customer and Order . Is the Customer class responsible for the lifecycle of Order class in either of

Class diagram examples for RPG (Role Playing Game)

徘徊边缘 提交于 2019-11-27 08:57:18
问题 Does anyone know where I can find examples of class diagrams for RP game development? Something similar to here would be quite useful. I'm not looking for things I can slavishly copy, but just for different examples that diagram various solutions to the problems I'm discovering as I try and pencil down my own classes. 回答1: I know Emmanuel Deloget from GameDev.net but I'm not sure I would choose to use the hierarchy he's got there! Too much inheritance, not enough flexibility. If I was writing

How to show usage of static methods UML Class Diagram

徘徊边缘 提交于 2019-11-27 05:57:10
问题 How do i show the use of static methods in a UML class diagram? class A{ public static void test(){ } } class B{ public void b(){ A.test(); } } How would a class diagram look like, which shows the relationship? UML 2.0 would be prepared, if there is a difference. 回答1: To show a static method you underline the name of the static method - have a look here for more detailed info. As for navigating that relationship; class B is dependent on the existance of class A . We can say that class B has a

How to use doxygen to create UML class diagrams from C++ source

蓝咒 提交于 2019-11-27 02:51:01
I have been searching for some material that describes how to generate simple class diagrams with doxygen, but couldn't find one. Can anybody help? I need to create diagrams as shown below from a set of C++ files. If there are better tools to achieve this easier, please let me know. DPD Doxygen creates inheritance diagrams but I dont think it will create an entire class hierachy. It does allow you to use the GraphViz tool. If you use the Doxygen GUI frontend tool you will find the relevant options in Step2: -> Wizard tab -> Diagrams . The DOT relation options are under the Expert Tab. average

Eclipse plugin for generating a class diagram [closed]

大兔子大兔子 提交于 2019-11-26 23:48:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . What is a good Eclipse plugin for generating a class diagram (for a project)? This image right here is exactly what I'm talking about. 回答1: Assuming that you meant to state 'Class Diagram' instead of 'Project Hierarchy', I've used the following Eclipse plug-ins to generate Class Diagrams at various points in my

Differences between a conceptual UML class diagram and an ERD?

核能气质少年 提交于 2019-11-26 19:46:01
问题 If I create a conceptual class diagram such that each class captures 'name' and 'attributes' but not 'operations', have I not basically created what would be otherwise considered an ERD? I'm trying to gain an understanding of what the differences are between creating a conceptual class diagram as I have described versus calling it a ERD? If these are still two different animals, can somebody please explain what the differences are? 回答1: There´s little difference in the expressiveness of both

How to generate Class Diagram (UML) on Android Studio (IntelliJ Idea)

时光怂恿深爱的人放手 提交于 2019-11-26 18:05:19
I've try to search and found this link , but Ctrl + Alt + Shift + D doesn't work. I also use find Action Ctrl + Shift + A to find action about diagram and uml but found nothing. I also search for the uml plugin , but most of them didn't work with new version of intelliJ (I didn't try it I just read the comment). Distwo I found a free plugin that can generate class diagrams with android studio. It's called SimpleUML . Update Android Studio 2.2+: To install the plugin, follow steps in this answer: https://stackoverflow.com/a/36823007/1245894 Older version of Android Studio On Mac: go to Android

Generate UML Class Diagram from Java Project [closed]

孤街醉人 提交于 2019-11-26 15:36:53
Is there a good tool that can help to reverse engineer Java classes to UML that will show an overview of how my classes are related to each other? It doesn't need to decompile from JAR file because I have the sources. I know there are quite a few out there but most of those can only generate individual class. I hope there is a tool that can generate class diagram that shows an overview of how all my current classes and packages work together, so that I can analyse my current architecture design. Of course, analysing is one thing. The other is for documentation purposes. I know of a few so far.