UML state diagrams with draw.io

https://about.draw.io/uml-state-diagrams-with-draw-io/

State diagrams have been used in programming to describe the various possible states that a system can be in for decades. They also quickly show which states lead to each other, and what triggers a change of state.

Of course, you can use these diagrams for anything system or process that has various states – library books, a publishing process, even punishment and reward states for your kids. They are very similar to flow diagrams, but UML has a notation specifically for state diagrams, which they also call state machines or statecharts.

Components of  UML state diagram

UML state diagrams use a notation that you may have already seen in our UML activity diagrams.

  • Start state: A solid circle.
  • End state: A solid circle with a ring around it.
  • State: A rectangle with rounded corners, with the name of the action.
  • Transition: Connector arrows with a label to indicate the trigger for that transition, if there is one.
  • State with internal activities: A state with a horizontal line, and the actions listed in the bottom half.
  • Composite state: A state with a horizontal line, and a nested state diagram (or link to another draw.io page) in the bottom half.
  • Guards or conditions: A diamond.
  • Fork: A thicker line with one transition incoming and two or more outgoing.   一个输入,多个输出
  • Join: A thicker line with more than one transition incoming and only one outgoing.  多个输入,一个输出

Tip: UML 2 state diagrams use the clear black/white shapes, and UML 1 has yellow shapes with a red outline. I personally find UML 2 easier to read.

原文地址:https://www.cnblogs.com/chucklu/p/12165013.html

时间: 2024-10-09 14:39:18

UML state diagrams with draw.io的相关文章

Draw.io—图表在线绘制

https://www.draw.io/     Draw.io-图表在线绘制 这个网站支持以下的模板 商务 图表 工程图 流程图 布局 Maps Network 其他 软件 Tables UML Venn 原文地址:https://www.cnblogs.com/wenzeBlog/p/8533650.html

流程图软件draw.io

工作中经常需要梳理一些流程图,时序图.以前用微软Visio绘制流程图(当然不是正版Visio).后来为了响应国家号召,改用processon(proceson.com)进行绘制流程图.Processon总体来讲还算好用,功能也不错,能够满足日常所需的流程图绘制.Proceson有个毛病,免费版的对保存的文件数量有限制,我记得好像是超过10个文件就不能保存,只能删除之前的文件,才能继续保存新文件.付费版不存在这个限制.当然作为一个软件公司来讲,这样做无可厚非,毕竟人家也是花了大价钱研发一款软件,然

Lexical Analysis & State Diagrams

Assignment 2: Lexical Analysis & State DiagramsLexical Analysis (Overview):Lexical analysis is the process of converting a sequence of characters from source program into a sequence of tokens. A lexical analyzer is a pattern matcher for character str

UML期末复习题——2.3:UML State Diagram

第三题  状态图 重要概念: 1.定义:事件.状态和转换: 事件:指一件值得注意的事情的发生. 状态:指对象在事件发生之间某时刻所处的情形. 转换:两个状态之间的关系.它表明当某事件发生时,对象从先前的状态转换到后来的状态. 2.状态无关和状态依赖对象 如果一个对象对某事件的响应总相同,则认为此对象对该事件状态无关(或非模态).例如,如果对象接收某个消息,响应该消息的方法总做相同的事情,则该对象对于该消息状态无关.如果,对所有事件,对象的响应总是相同的,则该对象是一个状态无关对象. 相反,状态依

UML类图(Unified Modeling Language Class Diagrams)

统一建模语言(UML) |  类图 什么是UML? UML是一种用于可视化描述系统,具有广泛用途的建模语言.作为一种标准化的图形语言,在软件工业中被用于软件系统部件的具体化,可视化,结构化描述以及撰写文档,同样在商业模型中也得到应用. UML的优点: 使复杂的软件设计更为简单,也能够实现像OOP(面向对象编程)这一类被广泛应用的概念. 用理解起来可能更容易的图来描述,避免了大量的文字. 是表达和交流概念或系统结构变得更容易. 在一张图中就能够描绘出整个系统. 程序员实用类图来描述实际需求时,可让

UML基本架构建模--图的术语和概念(三)

 Behavioral Diagrams The UML's behavioral diagrams are used to visualize, specify, construct, and document the dynamic aspects of a system. You can think of the dynamic aspects of a system as representing its changing parts. Just as the dynamic asp

Important Programming Concepts (Even on Embedded Systems) Part V: State Machines

Earlier articles in this series: Part I: Idempotence Part II: Immutability Part III: Volatility Part IV: Singletons Oh, hell, this article just had to be about state machines, didn’t it? State machines! Those damned little circles and arrows and q’s.

UML 学习

推荐书籍:<面向对象分析与设计(第3版)>.<UML精粹:标准对象建模语言简明指南(第3版)> 推荐一: http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=AmaterasUML 推荐二:: PlantUML :  http://www.plantuml.com/faq.html#vista   http://plantuml.sourceforge.net/classes.html http://plan

UML的基本图(二)

 Both sequence diagrams and communication diagrams are kinds of interaction diagrams. An interaction diagram shows an interaction, consisting of a set of objects or roles, including the messages that may be dispatched among them. Interaction diagra