活动图 状态图软件工程_状态图| 软件工程

状态图是一种重要的UML图表,用于建模系统的动态特性,描述对象在其生命周期内的状态变化。它分为行为状态图和协议状态图,前者展示对象状态的具体实现,后者捕捉系统行为或性质。状态图常用于系统状态表示、正向和反向工程,以及识别影响系统更新的事件。
摘要由CSDN通过智能技术生成

活动图 状态图软件工程

什么是状态图? (What is State Chart Diagram?)

A state machine of the states of objects defined by State Chart Diagram. The state machine can be called a machine that tells different states of an object and these states are controlled by internal or external events. A state chart diagram is a kind of diagram used in CS and a similar field to tell us about the nature of the system. The Special kind of a diagram is the Statechart diagram is known as Activity Diagram. It is used to the model of the states of objects of the time of life of an object so it is known as the Statechart diagram. It shows the various states as for transition for everything in the diagram.

由状态图图定义的对象状态的状态机。 状态机可以称为告诉对象不同状态的机器,这些状态由内部或外部事件控制。 状态图图是CS和类似领域中使用的一种图,用于告诉我们系统的性质。 图的特殊种类是Statechart图,称为活动图。 它用于对象生命周期中对象状态的模型,因此称为状态图。 它显示了图中所有内容的过渡状态。

状态图基础 (Basic of State Chart Diagram)

  1. It is one of the important UML diagrams used to model the spirited nature of a system.

    它是用于对系统的实质进行建模的重要UML图之一。

  2. The important aim of a diagram is to creation to termination from the states of objects.

    图表的重要目的是从对象的状态创建到终止。

  3. These are also used for ahead and opposite engineering of a system. The main aim is to model the responsible system.

    这些也用于系统的正向和反向工程。 主要目的是为负责任的系统建模。

  4. They describe different types of states of an object during its time of life and these states are updated by events and places where it used.

    它们描述了对象在其生存期内的不同类型的状态,并且这些状态通过事件和使用该对象的位置来更新。

  5. The main purposes of using Statechart diagrams are follows,

    使用Statechart图的主要目的如下:

    • Design the dynamic aspect of a system.
    • During its lifelong time defines the states of an object.
    • Model the time of a responsible system in states.
    • Tell a state product to design the states of an object.

状态图类型 (Types of State Chart Diagram)

1) First one is Behavioral state chart diagram

1)第一个是行为状态图

  • It stores the behavior of an entity present in the system.

    它存储系统中存在的实体的行为。

  • It is used to shows the represent the particular types of implementation of a state of object.

    它用于显示表示对象状态的特定类型的实现。

  • The behavior of a system of objects can be shaped the diagram using this diagram.

    对象系统的行为可以使用该图来调整图的形状。

2) Second one is Protocol state chart diagram

2)第二个是协议状态图

  • These state chart diagrams are used to capture or click the behavior or nature of a system of the objects used in the diagram.

    这些状态图用于捕获或单击图中使用的对象的系统的行为或性质。

  • It shows how the state of objects of protocol updates concerning the event in the place. It also represents corresponding changes in the system of the states of objects in the diagram.

    它显示了协议对象的状态如何更新有关该地点的事件的信息。 它还表示图中对象状态系统中的相应变化。

  • They don't represent the particular or simple implementation of an element of the states of the objects of the diagram.

    它们不代表图对象状态的元素的特定或简单实现。

在哪里操作状态图 (Where to operate State Chart Diagram)

  • To represent the states of a system.

    表示系统状态。

  • Ahead and just opposite engineering.

    与工程相反。

  • To represent the reactive system and responsible system consists of reactive states.

    代表无功系统和负责任的系统由无功状态组成。

  • To recognize the events responsible for updates of the system.

    识别负责系统更新的事件。

状态图 (State Chart Diagram)

These are very useful for defines the states. States can be guessed as the condition of objects when an event takes place.

这些对于定义状态非常有用。 可以将状态视为发生事件时对象的状态。

Before drawing a diagram we should know the following parts,

在绘制图表之前,我们应该了解以下部分,

  • Recognize the important objects to be analyzed

    识别要分析的重要对象

  • Recognize the states

    识别状态

  • Recognize the events

    识别事件

statechart diagram 1


Simple ATM Diagram

简单的ATM图

statechart diagram 2


Image source: https://www.researchgate.net/figure/Statechart-Diagram-of-ATM_fig3_220299153

图片来源:https://www.researchgate.net/figure/Statechart-Diagram-of-ATM_fig3_220299153

翻译自: https://www.includehelp.com/basics/state-chart-diagram-software-engineering.aspx

活动图 状态图软件工程

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值