不确定我的 UML 用例图是否正确

发布于 2024-12-25 08:19:06 字数 216 浏览 6 评论 0原文

我已经开始学习 UML,但有时它让我感到困惑(例如,我允许或不允许在用例图中放入什么,上次我想知道登录是否可以在用例图中使用)。无论如何,我已经制作了电子学习平台的简单用例图,例如 lynda,但您必须为您想参加的个人课程付费。对我的图表有什么建议/更正吗? (我想引入更多用例)

在此处输入图像描述

I've started learning UML but it confuses me sometimes (for example what i'm allowed or not to put in my USECASE diagram, last time i was wondering if logging in can be used in usecase diagram). Anyways i've made simple usecase diagram of e-learning platform, like lynda but you have to pay for individual course you'd like to take. Any suggestions/corrections about my diagram? (i'd like to bring more usecases into it)

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

极度宠爱 2025-01-01 08:19:06

如您所知,用例是用户和系统之间流程的文本表示。用例应该有一个反映该流程的名称。当我查看您的用例名称时,我可以看到您已经理解了这一点。这些名称都是描述性的并且经过深思熟虑。干得好!

那么,关于用例图:用例图的目的是让人们更容易理解有哪些用例,以及用例的目标用户类型。因此,箭头总是参与者用例。

有时,一个参与者可以是一个单独的系统,然后它应该作为参与者包含在用例图中,其名称暗示参与者是一个系统。如果一群人由于某种原因可以有一个包含“系统”一词的名字,我认为应该澄清的是,描绘这群人的演员不是一个实际的系统,尽管演员的名字暗示它是一个单独的系统。

as you know, a use case is a textual representation of a flow between a user and the system. the use case should have a name that reflects that flow. when i look at your use case names i can see that you have understood this. the names are all descriptive and well thought through. well done!

so, about use case diagrams: the purpose of a use case diagram is to make it easier to understand what use cases there are, and what type of users the use cases are intended for. because of this, the arrows always go from an actor to a use case.

sometimes an actor can be a separate system, and then it should be included in the use case diagram as an actor, with a name that hints to the actor being a system. if a group of persons for some reason could have a name that include the word 'system', i think it should be clarified that the actor portraying that group of persons is not an actual system, although the name of the actor hints to it being a separate system.

桃气十足 2025-01-01 08:19:06

我会将名为 Register/Login 的用例拆分为两个单独的用例。我认为这些步骤是两个单独的操作,需要不同的步骤来执行。通过这种方式,您还可以将用例转换为组合。

我们经常这样做:

  • 创建用例
  • 创建同名的活动图
  • 右键单击​​用例
  • 高级
  • 制作复合

然后您可以添加有关如何在活动图中实现/执行特定用例的更详细的步骤。

这个答案当然是针对 Enterprise Architect 的。

I would split that Usecase called Register/Login into two separate Usecases. I think these steps are two separate actions and need different steps to execute. This way you are also able to transform the Usecases to Composites.

We often do it this way:

  • Create the Usecase
  • Create an Activity Diagram with the same name
  • Right-click on the Usecase
  • Advanced
  • Make Composite

Then you could add more detailed steps on how to implement/execute the certain Usecase in the Activity Diagram.

This answer is specific to Enterprise Architect of course.

柳若烟 2025-01-01 08:19:06

登录不是用户目标。必须登录才能满足用户注册的目的。如果用户登录后没有执行任何其他操作,然后注销,这会提供什么价值?没有任何。

Login is not a user goal. Login is necessary to be able to satify the user goal of register. If a user logged in, did nothing else, and logged out, what value does that provide? None.

脸赞 2025-01-01 08:19:06

一段时间以来,我一直在培训软件工程领域的基本技能,并创建一些简单的小项目,用户可以在其中免费交换报价。除了金融体系之外。所以我刚刚创建了一些关于基本系统场景的带有图表的用例,我想请您帮忙检查。我创造的东西是否很好,或者我有很多特别的错误。在过去的几个月里,我读了一本有关软件工程的书,这是我尝试创建实用内容的一部分。

UC 3. 添加服务报价

  1. 系统显示服务报价表格
  2. 承包商填写所有必填字段(名称、描述、价格、预计执行日期)
  3. 承包商如有必要,请填写注释字段
  4. 用户在系统上确认报价
  5. 系统在系统上注册报价数据库并分配 ID

UC 4. 报价引入服务的修改

  1. 系统显示表演者注册的注册服务列表 表演
  2. 者激活编辑报价选项
  3. 系统显示有关特定报价的信息表格
  4. 表演者以适当的方式修改特定报价
  5. 表演者应用修改后的报价并确认最终修改窗口由系统生成。

如果有必要,我可以添加功能需求以更好地理解项目的想法。

From a while I'm training basic skills in Software Engneering area and create small simple project where users will exchange offers without money. Apart of financial system. So I've just created some Use Cases with Diagrams on basic system scenarios and I want to ask You for a help to check. Is it quite good what I've created or I've here a lot of of particular mistakes. From the last couple months I read a book about Software Engeneering and this is a part where I try to create something practical.

UC 3. Adding offer of service

  1. System display offer of service form
  2. Contactor fill all require fields (name, description, price, expected execution date)
  3. Contractor fill note field if it is necessary
  4. User confirm the offer on the system
  5. System register the offer on the database and assign an ID

UC 4. Modification of offer introduced service

  1. System display list of registered service registered by performer
  2. Performer activate editing offer option
  3. System display information form concerning particular offer
  4. Performer modify particular offer in proper way
  5. Performer applying modified offer and confirm final modification window generated by the system.

If it's necesserly I can add functional lrequirements to better understand the idea of project.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文