A002-186-2629-赖海洲

这篇博客详细介绍了租房系统的需求分析与建模,包括活动图、状态机、实体关系图、需求基线等核心概念。作者通过实例展示了如何应用这些模型来描述系统的动态行为和静态结构,如租房流程、房屋状态变化、系统涉众和用例关系。此外,作者反思了需求分析的重要性,并提出了项目发展建议,强调从用户角度出发,进行市场调研和数据分析以提升系统服务质量。
摘要由CSDN通过智能技术生成

在这里插入图片描述

1.(activity diagram)活动图

1.1参考网站

https://www.smartdraw.com/activity-diagram/

1.2名词解释

An activity diagram visually presents a series of actions or flow of control in a system similar to a flowchart or a data flow diagram. Activity diagrams are often used in business process modeling. They can also describe the steps in a use case diagram. Activities modeled can be sequential and concurrent. In both cases an activity diagram will have a beginning (an initial state) and an end (a final state).
Initial State or Start Point
A small filled circle followed by an arrow represents the initial action state or the start point for any activity diagram. For activity diagram using swimlanes, make sure the start point is placed in the top left corner of the first column.
Activity or Action State
An action state represents the non-interruptible action of objects. You can draw an action state in SmartDraw using a rectangle with rounded corners.
Action Flow
Action flows, also called edges and paths, illustrate the transitions from one action state to another. They are usually drawn with an arrowed line.
Object Flow
Object flow refers to the creation and modification of objects by activities. An object flow arrow from an action to an object means that the action creates or influences the object. An object flow arrow from an object to an action indicates that the action state uses the object.
Sent and Received Signals
Signals represent how activities can be modified from outside the system. They usually appear in pairs of sent and received signals, because the state can’t change until a response is received, much like synchronous messages in a sequence diagram. For example, an authorization of payment is needed before an order can be completed.
活动图直观地呈现系统中的一系列操作或控制流,类似于流程图或数据流图。活动图通常用于业务流程建模。它们还可以描述用例图中的步骤。建模的活动可以是顺序和并发。在这两种情况下,活动图都将具有开头(初始状态)和结束(最终状态)。
初始状态或起点
填充的小圆圈后跟一个箭头表示任何活动图的初始操作状态或起点。对于使用泳道的活动图,请确保起点位于第一列的左上角。

活动或操作状态
操作状态表示对象的不可中断操作。您可以使用具有圆角的矩形在 SmartDraw 中绘制操作状态。

操作流
操作流(也称为边和路径)说明了从一个操作状态到另一个操作状态的转换。它们通常用箭头线绘制。

对象流
对象流是指按活动创建和修改对象。从操作到对象的对象流箭头意味着该操作创建或影响对象。从对象到操作的对象流箭头指示操作状态使用该对象。

发送和接收信号
信号表示如何从系统外部修改活动。它们通常以发送信号和接收信号对显示,因为状态在收到响应之前无法更改,就像序列图中的同步消息一样。例如,在订单完成之前,需要付款授权。

1.3联系项目

这是租房系统的活动图,用户在进入系统后浏览首页挑选房子,可以选择点击关注房源,以便下次快速浏览关注的房子,若用户选择代理租房,那就需要支付定金,找到合适的房屋后即可支付房租。若用户自行选择房屋,可以选择线下看房或者在线看房,在线看房是以直播看房的形式来进行,线下看房需要支付相关定金进行预约。用户在租房后也可使用在线申请维修功能,支付相关费用即可。
在这里插入图片描述

2.(state machine)状态机或状态图

2.1参考网站

https://www.visual-paradigm.com/guide/uml-unified-modeling-language/what-is-state-machine-diagram/

2.2名词解释

The behavior of an entity is not only a direct consequence of its inputs, but it also depends on its preceding state. The past history of an entity can best be modeled by a finite state machine diagram or traditionally called automata. UML State Machine Diagrams (or sometimes referred to as state diagram, state machine or state chart) show the different states of an entity. State machine diagrams can also show how an entity responds to various events by changing from one state to another. State machine diagram is a UML diagram used to model the dynamic nature of a system.

State machine diagram typically are used to describe state-dependent behavior for an object. An object responds differently to the same event depending on what state it is in. State machine diagrams are usually applied to objects but can be applied to any element that has behavior to other entities such as: actors, use cases, methods, subsystems systems and etc. and they are typically used in conjunction with interaction diagrams (usually sequence diagrams).
实体的行为不仅是其输入的直接结果,而且取决于其前一种状态。实体的过去历史记录最好用有限状态机图或传统上称为自动机进行建模。UML状态机图(或有时称为状态图、状态机或状态图)显示实体的不同状态。状态机图还可以显示实体如何通过从一个状态更改到另一个状态来响应各种事件。状态机图是用于建模系统动态性质的 UML 图。
状态机图通常用于描述对象的状态相关行为。对象对同一事件的响应不同,具体取决于它在 中的状态。状态机关系图通常应用于对象,但可以应用于具有行为性的其他实体的任何元素,例如:参与者、用例、方法、子系统等,它们通常与交互关系图(通常是序列图)一起使用。状态图是描述一个实体基于事件反应的动态行为,显示了该实体如何根据当前所处的状态对不同的事件做出反应。通常我们创建一个UML状态图是为了以下的研究目的:研究类、角色、子系统、或组件的复杂行为。
2.3联系项目
下图为租房系统的房屋的状态图,空置房屋由房东发布,房东发布空置房屋后,需要让管理员进行审核,若审核成功,房屋的状态即为空置状态,若空置的房屋被租用,房屋的状态即变为已租用状态,在租用到期后,房屋又会变成空置状态。若审核房屋不合格,即不将房屋存入房屋信息表,并让房东重新修改房屋信息上传。
在这里插入图片描述

3.(Entity relationship diagram)实体关系图

3.1参考网站

https://www.sisense.com/glossary/entity-relationship-diagram/

3.2名词解释

An entity relationship diagram describes how entities relate to each other. In simple terms, it’s a picture or a framework of your business or a certain business process. (Learn more about business process modeling). Entities are the things we need to store data about. It’s an aspect of your business that needs to store data, such as a department – or sales, revenues, maybe clients.An entity relationship diagram gives a snapshot of how these entities relate to each other. You could call it the blueprint that underpins your business architecture, offering a visual representation of the relationships between different sets of data (entities). In the diagram, entities are represented by boxes with lines linking them to various attributes, which describe the entity’s qualities or characteristics. Everything links up according to the relationships between the entities – or how they interact with each other. Relationships are sometimes referred to as cardinalities, which describes the interactions numerically – but let’s simply call them relationships.
实体关系图描述实体之间的关系。简单地说,它是您的业务或特定业务流程的图片或框架。(了解有关业务流程建模的详细了解)。实体是我们需要存储数据的东西。这是您的业务的一个方面,需要存储数据,如部门 - 或销售,收入,客户等。实体关系图提供了这些实体之间如何相互关联的快照。您可以称之为支撑业务体系结构的蓝图,提供不同数据集(实体)之间关系的可视化表示。在关系图中,实体由框表示,这些框的线条将它们链接到各种属性,这些属性描述实体的品质或特征。一切都根据实体之间的关系,或者它们彼此之间的交互方式而相互关联。关系有时被称为基数,它用数字描述交互,但让我们简单地将它们称为关系。实体联系图,提供了表示实体类型、属性和联系的方法,用来描述现实世界的概念模型。它是描述现实世界关系概念模型的有效方法。是表示概念关系模型的一种方式。用“矩形框”表示实体型,矩形框内写明实体名称;用“椭圆图框”或圆角矩形表示实体的属性,并用“实心线段”将其与相应关系的“实体型”连接起来;用”菱形框“表示实体型之间的联系成因,在菱形框内写明联系名,并用”实心线段“分别与有关实体型连接起来,同时在”实心线段“旁标上联系的类型(1:1,1:n或m:n)。
3.3联系项目
这是租房系统的实体关系图,图中房东拥有用户名,密码,性别,身份证号,联系方式五种属性,房东可以发布房源到房屋信息表中,也可以对自己发布的房源信息进行管理。租客拥有用户名,密码,性别,身份证号,联系方式五种属性,租客可以选择多个心仪的房屋进行租房。房屋有着房屋类型,房屋大小,房屋地址,房屋租金,房屋管理者五种属性。管理员有用户名,密码,联系方式三种属性,管理员负责管理大量存入房屋信息表中的房屋信息。
在这里插入图片描述

4.(requirement baseline)需求基线

4.1参考网站

https://www.jamasoftware.com/blog/defining-requirement-baseline/

4.2名词解释

A requirements baseline is a snapshot in time that represents an agreed-upon, reviewed, and approved set of requirements that have been committed to a specific product release.
That “release” could be a complete delivered product or any interim development increment of the product. When stakeholders “sign off” on requirements, what they’re really doing is agreeing and committing to a specific requirements baseline (whether they think of it in those terms or not).
Once the project team establishes a requirements baseline, the team should follow a pragmatic change control process to make good business and technical decisions about adding newly-requested functionality and altering or deleting existing requirements.
A change control process is not about stifling change; it’s about providing decision-makers with the information that will let them make timely and appropriate decisions to modify the planned functionality. That planned functionality is the baseline.
Typically, a baseline is also given a unique name so that all the project participants can refer to it unambiguously. And good configuration management practices allow the team to reconstruct accurately any previous baseline and all its components.
需求基线是时间快照,表示已提交到特定产品发布的一组已商定的、经过审核的和已批准的要求。该"发布"可能是产品的完整交付产品或产品的任何临时开发增量。当利益相关者"签署"需求时,他们真正所做的是同意并致力于特定的需求基线(无论他们是否从这些术语中考虑)。一旦项目团队建立了需求基线,团队就应遵循务实的变更控制流程,就添加新请求的功能以及更改或删除现有需求做出良好的业务和技术决策。变更控制它意味着向决策者提供信息,让他们及时做出适当的决策来修改计划的功能。计划的功能是基线。通常,基线还具有唯一的名称,以便所有项目参与者都可以明确引用它。良好的配置管理实践使团队能够准确重建任何以前的基线及其所有组件。
4.3联系项目
在我们小组的开发的租房系统中,我们项目的需求基线要求项目雏形就必须要实现以下的功能。
房屋管理功能:房屋管理这一模块包括房屋信息管理和房屋租赁管理。房屋信息管理中包括了房屋的添加、删除与更新操作。房屋在添加后上传到app后,若长达一年时间无人租用,系统将会自动下架。房屋的添加可以设置两种租金,一种是单租租金,一种是合租租金,合租租金一般大于单租租金。房屋租赁管理模块中实现用户的租房与退房等功能。进行房屋租赁操作时,需要查看当前房源是否处于流通状态(就是有人预约看房的意思)、是否有房以及是否有人预订等。

房屋查询功能:房屋查询提供用户与系统查询房屋的功能,放阔对房屋类型、房屋装修类型、房屋区域、房屋面积、房屋价位的查询等。

用户管理功能:这一功能包括了添加用户、删除用户、查询用户相关信息。

用户个人信息管理:个人信息管理实现用户注册和登录身份验证,查看个人信息,修改个人信息的功能。

房屋租用管理以及合租管理功能:房屋租用管理模块中可以实现当前租赁信息中续租房屋、在房屋预订信息中可以查看当前所预订房屋的状态,并可以取消当前预订的房屋等功能。合租管理功能可以实现在预约合租房屋信息中可以查看当前所预订房屋相关信息,并可以取消当前预订的合租房屋等功能。

用户信息查询功能:用户在点击房屋信息时,会有所属房东的id,点击房东id便会显示房东相关详细信息(用户名,性别,电话号码,信誉度)。房东成功租房后,在已租出房间信息页面中会有租户id,点击租户id便会显示租户相关详细信息(用户名,性别,电话号码,信誉度)。

合租功能:用户看中某间房子后,点击合租按钮,系统会根据信誉度以及用户在交了一定的租金之后决定是否将房屋信息便会存到合租信息表中。房东设置的合租租金大于单人租金,合租人数的设置根据房间人数来设置,租户在付了平分后的合租租金即可入住。

自动推送功能:系统会先定位用户当前所在区域,再根据对应的区域推荐相关的附近房屋。若无法定位用户当前所在区域,则会随机从房屋信息表中抽取几个推荐给用户。

5.(context diagram)上下文图

5.1参考网站

https://www.edrawmax.com/context-diagram/

5.2名词解释

Also referred to as the Level O Data Flow Diagram, the Context diagram is the highest level in a Data Flow Diagram. It is a tool popular among Business Analysts who use it to understand the details and boundaries of the system to be designed in a project. It points out the flow of information between the system and external components.
It is made up of a context bubble, first drawn in the middle of the chart. It is usually a circle shape that represents a conceptual boundary that encloses a group of interconnected processes and activities of a project. The nitty-gritty details of the internal structure of a system are masked in a context diagram since it is strictly a high-level view of the system. This process is called information hiding.
A context diagram makes part of the requirements document in a project. Unlike other project diagrams, the Context diagram is not for use by the engineers/technicians but the project stakeholders. It, therefore, should be laid out in simple and understandable language for easy understanding of the items by the stakeholders when they analyze it.
上下文图也称为 O 级数据流图,是数据流图中的最高级别。它是一种深受业务分析师欢迎的工具,他们用它来了解要在项目中设计的系统的细节和边界。指出了系统和外部组件之间的信息流。
它由上下文气泡(首先绘制在图表中间)为背景气泡。它通常是一个圆形,表示一个概念边界,它包含一组相互关联的进程和项目的活动。系统内部结构的细微细节在上下文图中被掩盖,因为它严格来说是系统高级视图。此过程称为信息隐藏。
上下文图使项目中的一部分需求文档。与其他项目图不同,上下文图不是供工程师或技术人员使用,而是供项目利益相关者使用。因此,它应用简单易懂的语言进行,以便利益攸关方在分析项目时能够方便地理解这些项目。

5.3联系项目

系统的上下文图在任何项目中都是必须要考虑得,在我们的租房系统项目中也不例外,通过上下文图这一重要因素可以减轻开发人员的工作,它显示了新的系统是如何适合其环境,它定义了所开发的系统和系统外部实体(如使用人员、硬件设备和其它信息系统)之间的边界和接口。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值