uml

07 UML类图

你离开我真会死。 提交于 2019-12-01 22:58:31
类图 Animal 类名 Animal.color 类属性 type 实例属性 __name 私有属性 eat() 实例方法 __fuck() 私有方法 来源: https://www.cnblogs.com/scopicat/p/11719993.html

Java UML Automated generation for NetBeans 7.0 [closed]

我怕爱的太早我们不能终老 提交于 2019-12-01 20:45:58
I need to make UML diagrams of my project. How could I do it in NetBeans 7.0? The program or plugin has to do it automatically. Search the plugin in netbeans plugin page with name is UML . You can find some plugins. Also look this article, Generating UML from netbeans. Have you looked this http://netbeans.org/features/uml/ ? 来源: https://stackoverflow.com/questions/7038815/java-uml-automated-generation-for-netbeans-7-0

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

How to generate Java from online UML models?

自作多情 提交于 2019-12-01 18:45:27
I need to create UML class diagram online and to generate Java code from it. Drawing tools such as cacoo don't allow to generate code as they are not real UML modelers. Does anybody know an UML online tool that generates Java code? Thanks for your help~~ You should take a look at GenMyModel an UML online tool GenMyModel allows you to create an UML class diagram online and generate Java code from it. There is one generator that allows you to produce Java source code from a UML model. This module uses the standard UML2 metamodel provided by Eclipse Foundation and as such is compatible with any

UML简单介绍—类图这么看就懂了

两盒软妹~` 提交于 2019-12-01 18:33:48
如何看懂类图 1、类图简介    描述类的内部结构和类与类之间的关系,是一种静态结构图。 在UML类图中,常见的有以下几种关系: 泛化(Generalization), 实现(Realization),关联(Association),聚合(Aggregation),组合(Composition),依赖(Dependency)。 2、各种关系的强弱顺序    泛化 = 实现 > 组合 > 聚合 > 关联 > 依赖 3、类图关系 3.1、泛化 表示继承关系, 表示类/接口对父类/接口的功能扩展。 java语法中的 extends , 用来扩展父类或父接口的功能。 图形表示: 空心三角箭头+实线, 箭头指向父类或父接口。 A继承B。    3.2、实现   表示类实现接口定义的行为或功能。 java语法中的 implements 。 图形表示: 空心三角箭头+虚线, 箭头指向接口 。 A实现B的接口。    3.3、依赖 可以简单的理解,就是一个类A使用到了另一个类B,而这种使用关系是具有偶然性的、临时性的、非常弱的,但是B类的变化会影响到A;比如某人要过河,需要借用一条船,此时人与船之间的关系就是依赖;表现在代码层面,为类B作为参数、属性被类A在某个method方法中使用。 java的语法中, 被依赖的对象/类, 以方法参数, 局部变量和静态方法调用的形式出现。 图形表示:

UML简单介绍—类图详解

可紊 提交于 2019-12-01 18:33:29
类图详解    阅读本文前请先阅读: UML简单介绍—类图这么看就懂了 1、泛化关系    一个动物类: 1 /** 2 * 动物类 3 */ 4 public class Animal { 5 6 public String name;//名字 7 public int age;//年龄 8 9 public String getName() { 10 return name; 11 } 12 13 public void setName(String name) { 14 this.name = name; 15 } 16 17 public int getAge() { 18 return age; 19 } 20 21 public void setAge(int age) { 22 this.age = age; 23 } 24 }   属性的表示方式为:【可见性】【属性名称】:【类型】={缺省值,可选}   方法的表示方式为:【可见性】【方法名称】(【参数列表】):【类型】   如下:    子类Dog: 1 public class Dog extends Animal{ 2 3 private String sound = "汪汪";//声音 4 5 protected void sleep(){ 6 System.out.println("睡四个小时"); 7 }

Are UML diagrams only for Object oriented approach?

余生长醉 提交于 2019-12-01 18:29:31
问题 Is there any restriction that UML diagrams could be drawn only for systems with Object oriented approach? Can we use them for other approaches (E.g.: procedural)? 回答1: Yes, you can definitely use UML for modeling with other approaches, for example the use case diagram or acitivity diagram are in no way bound to OOP. 回答2: A discussion in the comments of another exchange lead me to make another answer here because I think the other answer is a bit short. In fact, the original authors of UML,

Are UML diagrams only for Object oriented approach?

旧巷老猫 提交于 2019-12-01 18:20:22
Is there any restriction that UML diagrams could be drawn only for systems with Object oriented approach? Can we use them for other approaches (E.g.: procedural)? Yes, you can definitely use UML for modeling with other approaches, for example the use case diagram or acitivity diagram are in no way bound to OOP. A discussion in the comments of another exchange lead me to make another answer here because I think the other answer is a bit short. In fact, the original authors of UML, Booch , Jacobson and Rumbaugh ,in their books ( The UML User Guide , The UML Reference Manual ) describe UML in the

UML generalization and realization

冷暖自知 提交于 2019-12-01 18:09:55
问题 I am pretty new to UML, so I have some questions about Generalization and Realization. I am modeling the behavior of an electronic microcontroller and I need to generate C++ code from the UML description. As far as I know, a class realizes an interface, that means it may provide the implementation of an interface. A generalization relationship may exist between two classes. In that case the derived class inherits all the members of the base class and gains access to public and protected