uml

Software for Sequence Diagrams? [closed]

淺唱寂寞╮ 提交于 2019-11-29 20:43:25
I've been using NClass for object/class modeling in class thus far. However, I do not believe that it is capable of sequence diagrams, which is my next task. I would prefer not to use Visio. Is there a good and free software solution for making sequence diagrams? For me there are usually about 3 tools I prefer to use. Netbeans UML Plugin (Its free and its nice) Visual Paradigm UML (its really nice but it isn't free, you might be able to get a free academic copy, but that requires a bit of work Visio (I Know you said you didn't like it, but it works) There is www.websequencediagrams.com that is

Functional programming - standard symbols, diagrams, etc

旧巷老猫 提交于 2019-11-29 20:30:10
问题 I have a problem, which I believe to be best solved through a functional style of programming. Coming from a very imperative background, I am used to program design involving class diagrams/descriptions, communication diagrams, state diagrams etc. These diagrams however, all imply, or are used to describe, the state of a system and the various side effects that actions have on the system. Are there any standardised set of diagrams or mathematical symbols used in the design of functional

What are the differences pre condition ,post condition and invariant in computer terminology [closed]

半城伤御伤魂 提交于 2019-11-29 20:11:30
I am reading the book Java Concurrency in Practice and getting a little bit confused with these terms: Pre condition Post condition Invariants Can someone please explain me them (with an example, if it's possible)? You'll have a lot of problems writing Java, especially multi-threaded code, if you can't understand these simple ideas: Pre-conditions are the things that must be true before a method is called. The method tells clients "this is what I expect from you". Post-conditions are the things that must be true after the method is complete. The method tells clients "this is what I promise to

Is there an inituitive UML approach to depict threads

↘锁芯ラ 提交于 2019-11-29 19:45:03
I'm fond of using UML diagrams to describe my software. In the majority of cases the diagrams are for my own use and I use them for more involved pieces of code, interactions etc. where I'll benefit from being able to look back over them in the future. One thing I've found myself doing a few different ways is diagramming threads. Threads by their nature tend to pop up in the more involved pieces of code and keeping track of them is often a primary purpose of my design documents. In the past I've used a symbol in a sequence diagram to show the creation of a new thread but looking back at some

UML Class Diagram for User Login

邮差的信 提交于 2019-11-29 18:57:54
The diagram below is my very first attempt at creating a UML class diagram describing a user login into a website. I'm sure its a poor design and full of flaws, but I'm hoping to learn from you guys how you would design a simple login like this. I'm particularly interested in your use of design patterns and which patterns you would use, how you would implement it in the design, and why. Any advise, criticisms, comments and suggestions will be really appreciated. Thanks in advance. Arthur Ronald Here is how we implement this funcionallity As you can see, we have many Application (Here, it

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

UML 及其作用

独自空忆成欢 提交于 2019-11-29 18:37:37
UML(Unified Modeling Language,统一建模语言)是一组用于描述OOAD过程的图形化表达方式。 UML为交流面向对象的设计中的需求,行为、体系结构的实现提供了一套综合的表示法。 UML绘制工具,EA 和VSU 2010 UML由9个不同类型的图组成: 用例图:显示了系统的外部可视行为。 用例图描述了系统外的人员和系统的交互动作,以及系统的响应,该类型的图可以用于描述系统的功能需求。 活动图:显示系统行为的峡谷纳西描述。 活动图描述了单个功能需求内部的细节行为,包括基本的场景和一些可选的场景。 组件图:显示了系统的体系结构。 组件图描述了系统的可部署单元(可执行文件,组件,数据存储和其他一些内容)以及一些借口,可部署单元通过这些接口进行交互,该图可以用于研究系统的体系结构。 顺序图:显示了对象随着时间的交互。 顺序图描述了某个功能需求的路径或场景内相对时间的详细行为,该图可用于理解系统元素之间的消息流程。 协作图:显示了对象的交互,强调对象之间的关系。(在UML2.0里面找不到了) 类图:显示了类的定义和关系。 类图描述了系统设计中的类和接口,以及他们之间的关系。该图可用于定义内部的,面向对象的代码结构。 状态图:显示了响应时间的状态改变。 状态图描述了系统如何改变状态以相应内部的和外部的事件,确保每个事件都被适当的处理。 部署图:显示了系统的物理体系结构。

How should I denote static classes in UML?

非 Y 不嫁゛ 提交于 2019-11-29 18:17:37
问题 So I did some research about how to denote static methods and classes in UML. I found on these two pages that static methods should be denoted by underlining them, but what is the correct way to display a class as being static? 回答1: Marking a class as static is a very low level information, which we don't put in UML diagrams usually. UML 1.0 as well as 2.0 gives some flexibility to designer/developer to modify the convention if it suits to your audience/team. You can put a note to that class,

UML类之间的关系

依然范特西╮ 提交于 2019-11-29 17:22:10
统一建模语言简介 统一建模语言(Unified Modeling Language,UML)是用来设计软件蓝图的可视化建模语言,1997 年被国际对象管理组织(OMG)采纳为面向对象的建模语言的国际标准。它的特点是简单、统一、图形化、能表达软件设计中的动态与静态信息。 统一建模语言能为软件开发的所有阶段提供模型化和可视化支持。而且融入了软件工程领域的新思想、新方法和新技术,使软件设计人员沟通更简明,进一步缩短了设计时间,减少开发成本。它的应用领域很宽,不仅适合于一般系统的开发,而且适合于并行与分布式系统的建模。 UML 从目标系统的不同角度出发,定义了用例图、类图、对象图、状态图、活动图、时序图、协作图、构件图、部署图等 9 种图。 本教程主要介绍软件 设计模式 中经常用到的类图,以及类之间的关系。另外,在实验部分将简单介绍 UML 建模工具的使用方法,当前业界使用最广泛的是 Rational Rose。使用 Umlet 的人也很多,它是一个轻量级的开源 UML 建模工具,简单实用,常用于小型软件系统的开发与设计。 类、接口和类图 1. 类 类(Class)是指具有相同属性、方法和关系的对象的抽象,它封装了数据和行为,是面向对象程序设计(OOP)的基础,具有封装性、继承性和多态性等三大特性。在 UML 中,类使用包含类名、属性和操作且带有分隔线的矩形来表示。 (1) 类名(Name

UML diagram use case condition

别说谁变了你拦得住时间么 提交于 2019-11-29 16:12:06
I am creating use-case diagram. I have two actors: user and admin. Admin can check all orders, and user can check only his/her orders. Should I create two use cases in my UML diagram, or I can use one use case with condition for user actor? If I can use condition, which symbol must I use? Square brackets or curly brackets? You need to attach a constraint to either the connector, the use case or the actor (where it's most appropriate). It could look like this: Note that this is an example and contains redundant constraints which should not be done for a real UC. I believe you are doing too much