UML状态机图可以用来显示屏幕导航吗?

发布于 2024-08-08 05:20:55 字数 26 浏览 3 评论 0原文

UML状态机图可以用来显示屏幕导航吗?

Can UML state machine diagram be used to show the screen navigation?

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

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

发布评论

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

评论(3

探春 2024-08-15 05:20:55

当然,您可以创建 UI 的 UML 模型作为状态机,例如:

  • 屏幕是状态

  • 状态转换,即屏幕更改发生在特定输入或其他触发器上

您实际上有一些更具体的问题吗?

Sure you can create a UML model of the UI as a state machine, for example:

  • Screens are states

  • State transitions i.e. screen changes occur on specific inputs or other triggers

Did you actually have some more specific question?

最近可好 2024-08-15 05:20:55

您可以使用状态机,但也可以使用序列图。如果您不需要坚持纯 UML,那么有很多专门用于 Web 系统规范的方法,其中包括 Web 导航模型的概念(具有页面、链接等元素)。这些方法要么使用 UML 配置文件,要么使用完全不同的建模语言(如 WebML)

You can use state machines but it is also possible to use sequence diagrams for that. If you don't need to stick to the pure UML, there are plenty of approaches devoted to the specification of web systems that include the concept of web navigation models (with elements as pages, links,...). These approaches either use UML profiles or a completely different modeling language (as WebML)

孤星 2024-08-15 05:20:55

UML 用于对面向对象范例的过程进行建模。状态机实际上处理对象的状态,与 UI 导航无关。

这里最好的选择可能是在用例图中表示它。

UML is for modeling processes for an Object Oriented paradigm. State Machine actually deals with an object's state and has got nothing to do with UI navigation.

Your best bet here might be to represent that in Use-Case diagram.

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