class-diagram

What's the best way to represent a networked connection in a UML class diagram?

狂风中的少年 提交于 2019-12-01 20:45:47
问题 What's the best way to represent a networked connection in a UML class diagram? 回答1: UML class diagrams are not appropriate to describe a topological notion as a "network"; they are better suited for hierarchies and interdependencies between objects. Or are you talking about a Connection class? 回答2: The Class Diagram is the wrong place to be trying to show network connections. A Class diagram will show only the classes in your software and how they relate to each other. You should use a

What's the best way to represent a networked connection in a UML class diagram?

我是研究僧i 提交于 2019-12-01 19:48:43
What's the best way to represent a networked connection in a UML class diagram? UML class diagrams are not appropriate to describe a topological notion as a "network"; they are better suited for hierarchies and interdependencies between objects. Or are you talking about a Connection class? The Class Diagram is the wrong place to be trying to show network connections. A Class diagram will show only the classes in your software and how they relate to each other. You should use a Deployment Diagram to show how the elements of your software are going deployed across the network. You could also

UML class diagram: how to model relations about calling a method or starting an activity or service

橙三吉。 提交于 2019-12-01 02:43:50
问题 I'm creating my first Android app. I have avoided to label associations with user or system interactions (e.g. I have labeled starts instead startsWhenClick ; I have labeled starts instead startsWhenDetection ). However, after reading this, I'm considering to change the starts associations by << create >> dependencies. I'm confused! The app works as follow. When the app starts, LauncherActivity will call the methods of BaseActivity to start the activity marked in SettingsActivity (it could be

When to use UML Association Classes?

北战南征 提交于 2019-11-30 09:09:01
Can I improve my design on these 2 diagrams below? If so, how? I am confused by the use of association classes in my diagrams. Should I use them? Figure 1 Figure 2 For association classes, they make sense only if they represent associations with some behaviour and state. Look at Article'sSubject. It has nothing more than source, target and identity. You don't need a class for such a association, just use plain association, which has all those properties. There are more such unnecessary association classes in your diagrams. Another important thing when using association classes is that every

UML Diagram Tool - Eclipse plugin? [closed]

房东的猫 提交于 2019-11-30 06:57:37
Can anyone help me? I am currently using Eclipse Java IDE, and would like a plug-in that will automatically look at my classes and draw up a class diagram in UML. Any suggestions? I recommend the ObjectAid UML plugin . It works very nicely. sethrq The challenge in what you are trying to do is that you can have multiple correct UML diagrams for any piece of code. Just trying to automatically get a diagram ends up with too much garbage when using most UML tools - and the tools just end up getting in the way. We created Architexa to help in this situation - Architexa helps you to get to useful

UML Class diagram, how to show a Class extends thread?

安稳与你 提交于 2019-11-30 02:56:10
问题 I have a class called ServerSide in which another class resides called Cserver. The following code fragment should explain what I am talking about: public static void main (String [] args) throws Exception { System.out.println("The server is running."); int clientnumber = 1; ServerSocket server = new ServerSocket(9090); try { while (true) { new cserver(server.accept(), clientnumber++).start(); } }finally { server.close(); } } private static class cserver extends Thread { private Socket socket

JavaScript code to Class Diagram

♀尐吖头ヾ 提交于 2019-11-30 01:45:37
I am looking for a tool that can generate class diagram from JavaScript code. Similar to the ones for C++ and Java. Is there any? http://jsuml.org/ If you are using node.js, i made a module that generate a class diagram for javascript/node/html/css. Its called wavi. For javascript, function and variable are recognized. https://www.npmjs.org/package/wavi 来源: https://stackoverflow.com/questions/943212/javascript-code-to-class-diagram

Use IntelliJ to generate class diagram

可紊 提交于 2019-11-29 18:50:55
How do I get IntelliJ 10.5 (on the Mac) to generate a class diagram showing all of the classes in my project? I'm sure I'm overlooking something obvious, but I can only get the "Show Diagram" feature to show one class at a time. (I also figured out how to add additional classes, but again, only one at a time.) Use Diagrams | Show Diagram from the context menu of a package. Invoking it on the project root will show module dependencies diagram. If you need multiple packages, you can drag&drop them to the already opened diagram for the first package and press e to expand it. Note : This feature

Private nested Java class in UML diagram

。_饼干妹妹 提交于 2019-11-29 09:16:50
I have a question regarding UML. I have a class which simply contains an inner class with the private access modifier - cannot be accessed from anywhere else... Normally in order to present an inner class relation I can use a (+) relation like here ( InnerOddIterator ): (taken from http://www.uml-diagrams.org/nested-classifier.html ) I have not found anywhere any information about how can clearly emphasize that this class is private. Do you know if such a method exist at all? If yes I'll be grateful you give me some link here or something? Just to keep things clear, a sample code: public class

Shortcut for denoting or implying getters and setters in UML class diagrams

血红的双手。 提交于 2019-11-29 06:34:54
问题 In a UML class diagram, if a class has 5 private attributes that need to be mutable and readable, the UML gets pretty ugly with 10 get/set methods even without any of the class' interesting functionality: Ugliness aside, I feel like the UML should focus on the class' more interesting functionality. Am I correct? Is there some standard shortcut for denoting or implying getters and setters for private attributes? 回答1: You are correct: there is no need to include the (noise of) "boilerplate"