uml

UML类图简单指北

社会主义新天地 提交于 2019-12-14 11:46:24
UML图简易指北 UML全称为Unified Modeling Language(统一建模语言),是一种图表式的程序蓝图,本文的目的仅仅是让读者简单的了解,使用UML以应付考试和简单的工程需求。 作者按:UML的发展史,想必不用在此赘述,而至于其是否真的有助于工程,想来各位读者也是心知肚明;但是,类似于ruby on rails那种类似于智能语言的前瞻性尝试,不可说不让人心生向往,而让UML图(或者类似的东西)直接生成程序,也是模块化智能语言的尝试方向之一,所以我认为即使UML的初衷是让不懂此类编程语言的人看懂程序,但是UML不同图里隐含着对建模的一种视角上的思考,值得学习。对提升工程能力也应该是有好处的,可以更加从不同角度去理解软件系统。 当然,细究UML的图法词法大可不必,标准UML2.5文档长达800页(SDpdf),已经和java本体的说明文档差不多了;弱水三千,只取一瓢即可。 UML常见图汇总: 用例图(Use Case Diagram) 类图(Class Diagram) ---------------------------------------------------JAVA考试考点 序列图(Sequence Diagram) 不常用:对象图、包图、状态图、活动图、协作图、构件图、部署图 UML类图: 类图的意义: ​ A、显示出 类、接口 以及它们之间的

Class diagram conversion to relational model; Inheritance, and a table for matching

可紊 提交于 2019-12-14 04:20:05
问题 For a school project, I'm supposed to design the systems of a previous semester's project. We're using UML, creating an extremely simple use case diagram (no <<extend>> type nonsense, just actors pointing at use cases inside of a system), from which we make a class diagram, then a relational model. Use Case and Class Diagram attempts: The last diagram is just me eventually thinking that maybe my use cases were the issue. My application lets people/restaurants list food they're willing to

UML composition with bidirectional association (composing object has back-pointer)

血红的双手。 提交于 2019-12-14 04:09:52
问题 I can't seem to find a decent answer on the interwebs, though I'm sure it's been asked before. Basically, I have an object that is composed of another object - so black diamond and line. When the parent dies, the object it composes dies. However, the object that is it composed of has a pointer back to the parent. What does this look like in UML? EDIT: For example, a building may be composed of rooms, but the rooms contain pointers back to the building object Thanks 回答1: You would use the

Interface Class relationship in visual paradigm

梦想与她 提交于 2019-12-14 03:54:58
问题 I have been working on this for quite few time but could not find a way to denote the relationship between a class and an interface that is implemented by class in an UML diagram. Can someone help me in the above problem? My interface and class has following relationship interface foo { void a(); void b(); } class goo : foo { public override void a() { //Code goes here } } Can you please tell me what to use in visual paradigm to show there relationship? 回答1: It is shown like inheritance. This

How can I represent a Python dictionary in UML?

人盡茶涼 提交于 2019-12-14 02:38:28
问题 I would like to know how I can represent a Python dictionary using UML. This dictionary is an attribute of a class called Digraph. The keys are of type Node, and the values are of type Edge. 回答1: Qualified associations are useful for modeling maps/dictionaries. See uml-diagrams.org for some examples. You can also read the official UML (2.5) specs (see page 215) And your particular problem can be represented as: However note that this is only for nodes with single outgoing edges (its one-to

uml Composition relationships to RDF and OWL

爱⌒轻易说出口 提交于 2019-12-14 02:06:08
问题 I'm beginner in RDF and OWL ontologies. I'm trying to transform this diagram into OWL syntax. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:dc="http://purl.org/dc/elements/1.1/" > <!-- OWL Class Definition - Robot Position --> <owl:Class rdf:ID="house" /> <owl:Class rdf:ID="room" /> <owl:Class rdf:ID="kitchen" /> <owl:Class rdf:ID="garden" /> <owl:Class rdf:ID="table" /> <owl

UML类图

隐身守侯 提交于 2019-12-13 20:18:28
类的表示 类图分为三层,第一层是类的名称,如果是抽象类或接口,就用斜体表示,其中接口名称的上部会用<<interface>>修饰;第二层是类的成员变量,通常是字段和属性;第三层是类的成员方法。类的成员变量和成员方法的修饰符分为+、#、-,分别表示public、protected、private。 类之间的关系 类之间的关系有泛化( Generalize), 实现( Realize) ,关联( Associate),聚合( Aggregate) ,组合(Compose),依赖(Dependency) 。 1.泛化( Generalize) 关系:泛化是一种继承关系,用来表示类与类、类与抽象类、抽象类与抽象类、接口与接口之间的关系。 箭线:用空心三角形+实线表示,箭头指向父类。 2.实现( Realize) 关系:实现用来表示类与接口、抽象类与接口之间的关系。 箭线:用空心三角形+虚线表示,箭头指向接口。 3.关联( Associate) 关系:关联可以是双向的,也可以是单向的;关联关系可以进一步划分为聚合及组合关系。 箭线:用实线箭头表示,双向的关联可以有两个箭头或者没有箭头,单向的关联有一个箭头。 比如,荷花受季节影响,箭头指向季节。 4.聚合( Aggregate) 关系:聚合用来表示整体与部分的关系,是一种弱的关联关系,体现为A可以包含B,但B不一定是A的一部分。 箭线

Need help in a login sequence diagram

眉间皱痕 提交于 2019-12-13 20:11:40
问题 hi everyone i'm à newbie in uml and my question is simple:i want to draw a sequence diagram for members login and the steps are as follows: the member visits the login page enters email/pwd clicks login then the system goes to the database if record exists if account active display login success msg else (account not active) display error msg else(record does not exists) display error msg and the diagram should contains the following objects: member login page System database so can any one

Convert StarUML diagram to Visio drawing

自作多情 提交于 2019-12-13 17:35:25
问题 I have a class diagram which i created using Star Uml but now the requirement is to port it to MS Visio . Is it possible to port the .uml to a .vsd with the xml information available? Thanks in advance. 回答1: Both programs support export/import of Windows Metafile (WMF) and Enhanced Windows Metafile (EMF). So you may try those. 回答2: Exporting as a Windows Metafile (WMF) and Enhanced Windows Metafile (EMF) only imports to Visio as an image. I understood that the purpose of exporting from

Saving UML model as XMI ambiguity

百般思念 提交于 2019-12-13 14:10:04
问题 I found this sentence in article about XMI on wikipedia: At the moment there are several incompatibilities between different modeling tool vendor implementations of XMI, even between interchange of abstract model data. I wondered how it is possible that, despite using a well-documented standard, tools are not compatible. After looking through documentations of UML and XMI and through other people's questions I found out that there is no XML scheama or DTD for UML models saved as XMI.