uml

UML Aggregation with and without arrow head

故事扮演 提交于 2019-11-30 22:35:11
I always thought that the UML aggregate is defined as a black (filled) diamond at the beginning of a path and no arrow head that the end: |--------| |--------| | :MyA |<>------| :MyB | |--------| |--------| Today I came across a notation like <>-----> (with an explicit arrow head on the right end). So I looked it up in the UML 2.4 specification and actually found references for both versions. My favourite reference: "UML and Patterns" by Craig Larman only mentions the first version without the arrow. In the UML specification I found a notice about navigable ends , but I am not sure if this is

UML_2_浅谈UML的概念和模型之UML九种图

坚强是说给别人听的谎言 提交于 2019-11-30 22:02:58
转载:https://my.oschina.net/zhumenzhongren/blog/667353 上文我们介绍了,UML的视图,在每一种视图中都包含一个或多种图。本文我们重点讲解UML每种图的细节问题: 1、用例图(use case diagrams) 【概念】描述用户需求,从用户的角度描述系统的功能 【描述方式】椭圆表示某个用例;人形符号表示角色 【目的】帮组开发团队以一种可视化的方式理解系统的功能需求 【用例图】 2、静态图 【概念】显示系统的静态结构,表示不同的实体是如何相关联的 【描述方式】三个矩形 (名字,属性,操作) 【目的】表示一个逻辑类或实现类,逻辑类通常是用户的业务所涉及的事物;实现类是程序员处理的实体 【类图】 类图(class diagrams) 对象图(object diagrams) 【概念】类图的一个实例,描述系统在具体时间点上所包含的对象以及各个对象的关系 【对象图】 3、交互图 用来描述对象之间的交互关系 【概念】描述对象之间的交互顺序,着重体现对象间消息传递的时间顺序 【描述方式】横跨图的顶部,每个框表示每个类的实例或对象;类实例名称和类名称使用冒号分开 【目的】显示流程中不同对象之间的调用关系,还可以显示不同对象的不同调用。 【序列图】 序列图(顺序图) 协作图(Collaboration diagrams) 【概念

How do I mark a class as a singleton in UML?

拈花ヽ惹草 提交于 2019-11-30 21:55:45
问题 I have an UML diagram on which I want to mark some classes as singletons (because they are). How do I do that? Do I invent a new stereotype or do I just add a comment or are there some existing means to do that? 回答1: Craig Larman's "Applying UML and Patterns" book (3rd edition) gives the following notation for a sequence diagram: Note that it implies that before calling doA the :Register object manages to get access to the singleton via the standard way, e.g., getInstance() . This makes the

Server as an actor in use case diagram for mobile application

若如初见. 提交于 2019-11-30 21:48:21
问题 I have developed an android application that communicates with a server. Through the application the user authenticates on the system that the server is running and after the server is able to send information to my application. I'm making a use case diagram (UML) for my application but I'm not sure if I should represent the server as an actor (external) or omit it from the diagram... I'm new in UML so the definitions are a little confusing to me at the moment... Can anyone help me with this?

UML, include, extend relationship

天涯浪子 提交于 2019-11-30 21:09:16
问题 I have trouble understanding how the include and the extend relationships work. Let's say i have an online application for shopping. The application allows you to add/retrieve items from your cart without being authenticated. Here is the "order" scenario: The client clicks on the order button. The system checks if the user is authenticated. If the user is authenticated the system displays the purchase page otherwise the user is redirected to the authentication page. I would like to know if i

UML Use Cases: how to model a “batch” feature?

走远了吗. 提交于 2019-11-30 19:37:32
问题 Should a batch scheduled process (for example, a nightly process) be modeled as a Use Case? it is something the system should do, but there is not an Actor "using" the feature, because it is scheduled. Any suggestions? Thanks! 回答1: We've defined a 'Scheduler' actor to model that scenario. The Scheduler usually has its own set of use cases which are batch jobs, or executables that need to run regularly, etc. For example, the Use Case can be written like "The Use Case begins when the current

【UML】UML的九种建模图总结

烂漫一生 提交于 2019-11-30 19:24:57
UML(Unified Modeling Language)是一种统一建模语言,为面向对象开发系统的产品进行说明、可视化、和编制文档的一种标准语言。下面将对UML的九种图+包图的基本概念进行介绍以及在软工文档的各个阶段都需要什么UML图。文档中图的出现往往就会减少冗余的文字,所以图是软件工程文档中必不可少的核心内容,UML图就像是软件工程师的“建筑蓝图”,是我们“入行”的必不可少的一课。 一、基本概念 如上图所示,我按照4+1视图用例视图,设计视图,进程视图,实现视图,拓扑视图 将⑨种图分开。还可以分为静态图和动态图两类。静态图分为:用例图,类图,对象图,包图,构件图,部署图。动态图分为:状态图,活动图,协作图,序列图。 1、用例图(UseCase Diagrams): 用例图主要回答了两个问题:1、是谁用软件。2、软件的功能。从用户的角度描述了系统的功能,并指出各个功能的执行者,强调用户的使用者,系统为执行者完成哪些功能。 2、类图(Class Diagrams): 用户根据用例图,通过抽象得到类,包括类的内部结构和类之间的关系,是一种静态结构图。 3、对象图(Object Diagrams): 对象图是类图的一个实例,描述了系统在具体时间点上包含的对象以及各个对象之间的关系。描述的是交互的静态部分。 4、状态图(Statechart Diagrams): 是一种由状态、变迁

UML ternary association

北城余情 提交于 2019-11-30 18:44:10
I'm currently having some trouble understanding ternary associations in UML. I get the binary ones, but I am unsure how to multiplicity works on ternary. I'm doing exercises that I got from my university, the current one goes like this: One department may sell many products, but only to one market. On a market one product may only be sold by one department. I've read on different sources about how I'm supposed to think about a pair of the two classes I'm not trying to figure out the multiplicity for, but my brain just isn't getting it. Help me Overflow Kenobi, you're my only hope. There seems

UML class diagrams for Xcode (swift programming)

坚强是说给别人听的谎言 提交于 2019-11-30 17:58:21
I have created an iOS mobile application. I wanted to know if there is a way to generate UML Class diagram for swift programming language? I have tried Omni Graffle but it keeps saying that the project doesn't contain Objective-C interfaces. And Omni Graffle only does this for objective-c. Please help. Thanks in advance. The answer unfortunately is: you can't do it. At least not automatically. Swift as compiler itself has enough flaws left. Leave alone some tool will be able to swallow any Swift code. Your only alternative is the good old manual way. I know that Enterprise Architect has a

UML-持久框架-目标&关键思想

狂风中的少年 提交于 2019-11-30 16:15:32
1、目标 1)、使用模板方法、状态模式、命令模式来设计部分框架 2)、介绍对象-关系(O-R)映射中的一些问题 3)、使用虚代理实现的滞后具体化 2、关键思想 1)、映射(Mapping) 2)、对象标识(object identity) 3)、数据库映射器(database mapper) 4)、具体化和虚化(materialization and dematerialization) 5)、缓存(cache) 6)、对象的事务状态(transaction state of object) 7)、事务操作(transaction operation) 8)、滞后具体化(lazy meterialization) 9)、虚代理(virtual proxy) 来源: https://www.cnblogs.com/yaoyuan2/p/11603632.html