这是用例图中使用的正确方法

发布于 2025-01-22 05:01:47 字数 376 浏览 4 评论 0原文

”图片2“

我只是创建此图,谁能告诉我这2张图片是正确还是错,我应该使用哪个图片?

Picture 1

Picture 2

I just create this diagram can anyone tell me if these 2 pictures are correct or wrong and which one should I use?, can anyone tell which is correct in these 2 pictures.

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

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

发布评论

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

评论(1

夜巴黎 2025-01-29 05:01:47

这两个图都可以,除了:

  • 演员与用例之间的关联应为直线,而不是定向箭头。这些箭是一种过时的练习。
  • 主题矩形应是
  • 与任何事物无关的关闭参与者,应删除

添加编辑的问题由您决定:

  • 分组的好处是简化模型。 管理学生甚至可以是更多通用,很常见。
  • 使它们分开可能看起来更颗粒状,但是如果有不同的演员或业务需求大不相同,则很有意义。

您可以阅读更多以下定决心,搜索crud用例

Both diagrams are ok, except:

  • the association between an actor and a use case should be straight lines and not directed arrows. These arrows are an obsolete practice.
  • the subject rectangle should be closed
  • actors not related to anything are useless and should be removed

The question of whether add and edit should be in the same use case or in distinct ones is up to you to decide:

  • grouping them has the benefit of simplifying the model. Manage students could be even more generic and is quite common.
  • keeping them separate may appear more granular but makes sense if there are different actors or if the business needs are very different.

You may read more to make up your mind, googling for CRUD Use case.

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