关于状态机图,如果两个动作触发了从状态的相同过渡,则应如何看起来像相应的状态过渡表?

发布于 2025-01-30 09:43:17 字数 238 浏览 3 评论 0原文

我正在尝试将此状态机图转换为其相应的状态过渡表,但我不知道在用问号标记的单元格中写些什么。 我应该同时写(A2/E2)和(A3/E3)吗?

enter image description here

I am trying to convert this state machine diagram into its corresponding state transition table but I don't know what to write in the cell marked with question mark.
Should I write both (a2/e2) and (a3/e3)?

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

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

发布评论

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

评论(1

当梦初醒 2025-02-06 09:43:17

您的表是状态过渡矩阵。无论如何,您都需要在S2-> S1单元格中显示两个替代路径,即a2/e2a3/e3

据我所知,此类矩阵没有标准规范。因此,以下任何一个都应该这样做:

  • 将两个过渡规则分开,例如,在两个过渡规则之间或在两个之间或两个之间的半隆(提示:逗号分隔),如果您唱了UML语法,可能会造成混淆,由于它允许几个相同效果的逗号分隔触发器);
  • 可视化两个过渡规则。
  • 或仅将此单元格成两个垂直堆叠的子单元。

您不能做的是复制整个行,因为这会破坏矩阵。此技术仅与1D状态过渡表一起使用(即每行对应于一个箭头)

Your table is a state transition matrix. You need in any case to show both alternative paths in the S2->S1 cell, i.e. a2/e2 and a3/e3.

There is as far as I know no standard specification for such matrix. So any of the following should do:

  • separating the two transition rules, e.g. with a semicolon between the two transition rules or with an OR between the two (hint: comma separation might be confusing if you're sing the UML syntax, since it allows several comma-separated triggers for the same effect);
  • visualizing the two transition rules one above the other;
  • or splitting just this cell into two vertically stacked subcells.

What you cannot do is to duplicate the whole line, since this would break the matrix. This technique only works with 1D state transition tables (i.e. each line correspond to one arrow)

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