uml

Functional programming - standard symbols, diagrams, etc

你说的曾经没有我的故事 提交于 2019-11-30 14:55:24
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 programs, or are such programs best designed in short functional-pseudo code (given that functions will be

Does statemachine and statechart mean the same?

☆樱花仙子☆ 提交于 2019-11-30 14:52:38
问题 I have heard people using these terms. I wonder if they refer to the same thing or is there a difference between these two? 回答1: Wikipedia actually covers this pretty well. http://en.wikipedia.org/wiki/State_diagram State machines have been around for a long time (decades at least). They consist of states (usually circles) and arrows between the states where certain actions can trigger an transition along an arrow. Moore and Mealy machines are the two main variants, which indicate whether the

Should user interfaces be included in the class diagram and sequence diagram?

守給你的承諾、 提交于 2019-11-30 13:39:05
I have a project and I'm required to produce the class and sequence diagram. It is a procurement website. My only problem is that I don't know how to associate the web pages (user interfaces) to these diagrams. If they are not needed what is the right way for me to include it in the diagrams because from a book I read there are "UserInterface" classes, so another question, what should be inside of these UI classes.Can someone give me an example. Thanks! There are several levels of abstraction for UI modelling. Use cases and state machines. These diagrams are made in human terms. Planning on

应用积累

醉酒当歌 提交于 2019-11-30 12:52:30
应用积累 备份 DotFile 系统配置, app 配置, 环境配置的备份 一些可以参考的 dotfile Awesome dotfiles Mathias’s dotfiles webpro/dotfiles 窗口管理 快速设置应用窗口的位置/大小的工具, 可以快速的分屏什么的, 这个还是挺有用的. 想折腾的 slate 不想折腾的 spectacle 截图 媒体休闲 播放器: iina, 听说可以在线搜字幕, 不错~ 合盖防休眠 brew cask install insomniax 图表 Graphviz 使用 dot 语法同问文本描述然后生成对应的图 UML 使用 UML 语言能对项目快速认识, 建模, 并且有些 UML 工具支持将模型转换成对应的代码 而且有些项目构建中, 可以将代码通过 UML 建模, 形成一个比较清晰的流程图, 关系图等等, 可以更好的理解项目 StarUML: 开源工具, 看起来和很多公司之间有合作的, 给人的感觉挺好 针对 iOS 开发的 UML Diagram 生成工具 swift-auto-diagram 这篇博客中还有一些其他关于 iOS, Swift 的教程, 可以学习到一些~ 看来博主是一个 Swifter GitHub 自动生成类/结构体/等等的关系 Objc & Swift 的依赖关系图 可以看到自己的类的关联 针对于 Swift 的

Use case generalization versus extension

不羁岁月 提交于 2019-11-30 11:57:08
问题 UML Use Case Diagrams allow for two seemingly equivalent ways to show that a given use case might be realised in several different ways namely use case generalizations as opposed to use case extensions. I have seen the following basically example modelled using either approach with equal frequency, sometimes within a single source. To my mind an extension is a weaker relationship than generalization as a direct substitution of the specialised use case for the base case must be possible in

UML中的类图及类图之间的关系

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

What kind of UML diagrams do you use? [closed]

我是研究僧i 提交于 2019-11-30 10:32:18
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . UML2 offers different kinds of diagrams. Up to now I only used class diagrams. What kind of UML diagrams do you use? What kinds of

When to use UML Association Classes?

北战南征 提交于 2019-11-30 09:09:01
Can I improve my design on these 2 diagrams below? If so, how? I am confused by the use of association classes in my diagrams. Should I use them? Figure 1 Figure 2 For association classes, they make sense only if they represent associations with some behaviour and state. Look at Article'sSubject. It has nothing more than source, target and identity. You don't need a class for such a association, just use plain association, which has all those properties. There are more such unnecessary association classes in your diagrams. Another important thing when using association classes is that every

Is there a way to draw UML in Visio for Java?

 ̄綄美尐妖づ 提交于 2019-11-30 08:26:50
I have Visio2007 and I really like it. However, it doesn't seem to have UML model/datatypes for Java. Is there some template I can download for Java? Or should I just forget about Visio altogether and get an Elipse plugin? Thanks! The latter is a better option, IMHO. Further, I don't think UML Models should be specific to Java. I am not aware of, if there are any java-specific UML, around. I found this while searching over the net. UML Models: MS Visio 2007 . user276646 I had the same question, but then I messed around with it until I figured it out. Now, bear with me; this is the first time I

How do you show events in UML Class Diagrams? [closed]

放肆的年华 提交于 2019-11-30 08:26:26
This one has me stumped regularly while creating top level class diagrams for documentation. Methods and attributes/fields are easy to model. I usually end up adding a method named EvChanged to indicate a .Net event Changed. What is the right way to show that a type publishes a specific event? Just add an «event» stereotype to a classifier attribute. I find onEventName() the easiest naming scheme for event callbacks, but how to indicate which events an object can broadcast I've not found any solution. An extended UML class diagram that would allow for customized containers (besides the