uml

UML for C programming language [closed]

流过昼夜 提交于 2019-12-17 17:30:15
问题 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 last year . UML is most commonly used for modelling system by using C++. In my projects C is the implementation language. I am looking for resources on UML strategies which are applicable for C. I want to use UML during design and represent the different aspects of the system. 回答1: I don't know of any existing resources that

Component diagram dependency vs assembly

非 Y 不嫁゛ 提交于 2019-12-17 16:49:41
问题 I'm having a hard time understanding the difference between dependency and assembly(ball and socket) in UML component diagram. I googled a lot and only found this relative question : uml component diagram difference between assembly and interfaces with dependency But I don't really understand the answer to that question, I specifically want to ask : What does he mean by "definition level" and "instance level" ? I understand that there is only one diagram, are there two ? Whether there are two

Does aggregation have to be one-to-many?

。_饼干妹妹 提交于 2019-12-17 16:49:23
问题 I've always avoided using aggregation because it seems so subjective which one-to-many relationships should be classed as aggregations. But I'm reviewing a model produced by someone else in which aggregations are used for many-to-many relationships (as in: a course consists of several modules, a module may be part of several courses). That strikes me as plain wrong, but I can't find a definitive rule against it. What's the official ruling? 回答1: A good website for this is http://www.uml

Draggable rectangles in Java 2D [duplicate]

混江龙づ霸主 提交于 2019-12-17 10:06:43
问题 This question already has an answer here : Closed 6 years ago . Possible Duplicate: how to drag object I need to draw some UML components (classes, packages etc) using Java 2D and then be able to drag them around. Is there a way to do this? I mean, to make a shape "draggable"? 回答1: JHotDraw was designed as "a Java GUI framework for technical and structured Graphics." The linked JHotDraw Pattern Language: JHotDraw Domain Overview illustrates how to customize drawing editors. The sample org

UML类图详细介绍

杀马特。学长 韩版系。学妹 提交于 2019-12-17 09:25:49
类图主要描述程序对象以及他们之间的关系。一般来说,类、接口、抽象类这些程序对象的区别很容易,但是他们之间六种关系以前总是理解不够深刻,这次进行了一次复习,顺便写成博文以便加深理解 类图中的三种对象 类/抽象类 类的表示一般一般如下图所示 类名:图正中间的黑体字表示类的名称,如果是名字的字体是斜体字,则表明该类是抽象类 属性:类名下面的区域表示类的属性 操作:属性下面的区域表示类的操作(或者说方法)。 可见性:属性和操作前面的+、-、#符号代表了这些对象的可见性分别是public、private、protected 接口 接口的表示一般如下图所示 接口的图和类图类似,只不过加入了interface标识。接口中的成员可见性都是public 类图中的六种关系 类图中,类与类之间一般会有六种关系,他们分别是继承(Generalization)、实现(Implements)、组合(Composition)、聚合(Aggressgation)、依赖(Dependency)、关联(Association) 继承(Generalization) 如果对面向对象编程思想了解,则比较容易理解继承的概念。在面向对象的编程思想中,继承是指子类继承了父类的所有功能,并且能够在父类的基础上扩展自己的功能。这里的继承就是表现这种父类和子类的关系。继承关系如下图所示

What is the difference between a domain class diagram and a design class diagram?

会有一股神秘感。 提交于 2019-12-17 08:59:09
问题 Can someone briefly explain the difference between a domain class diagram and a design class diagram? I found a explanation on Yahoo answers, but I find it quite confusing. 回答1: A domain model is called conceptual model in database modeling, while a design model is called logical model . These distinctions are also used in model-driven development, where we have a succession of three types of models: (solution-independent) domain models resulting from domain/requirements engineering in the

UML建模教程

雨燕双飞 提交于 2019-12-17 08:41:33
在线绘图工具ProcessOn: https://www.processon.com/support#mind-format 鲁棒图实例: http://blog.csdn.net/joeyon1985/article/details/42350005        http://book.51cto.com/art/201207/347562.htm        http://www.cnblogs.com/xiaruyan/archive/2011/04/24/2026278.html        https://book.2cto.com/201209/4089.html        http://www.cnblogs.com/bdbw2012/p/4799342.html PowerDesigner中绘制鲁棒图: http://jingyan.baidu.com/article/f96699bbeeee8d894e3c1bb9.html UML交互图(顺序图、通信图、鲁棒图、定时图): http://www.uml.org.cn/oobject/201012235.asp UML: http://plantuml.com/sequence-diagram UML官网: http://www.uml.org/index.htm IBM讲UML: https://www

Graphviz + Doxygen to generate UML class diagrams

僤鯓⒐⒋嵵緔 提交于 2019-12-17 07:11:11
问题 I want to use Graphviz + Doxygen to generate a class diagram based on C++ code. This works already as Doxygen comes with a native DOT support; but is it possible, to produce a UML-like output with the corresponding access modificators (public, private etc.), return and parameter types of the class methods, similar to the diagram below? I'm aware of thread How to use doxygen to create UML class diagrams from C++ source, but it doesn't answer the question, though. 回答1: Create the following

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

左心房为你撑大大i 提交于 2019-12-17 07:02:58
问题 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. 回答1: 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

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

风流意气都作罢 提交于 2019-12-17 07:02:02
问题 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. 回答1: 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