在 boost::statechart 中实现基于条件的内部初始状态选择的方法?
boost::statechart 中有哪些可能的方法来实现 Harel 状态图与状态图的比较UML 状态图 ?
“进入超级状态时,进入哪个状态(是否 X、Y、Z)取决于条件 C 的评估结果。”
What are some possible ways in boost::statechart to implement the initial state selection described on Slide 25 of Comparison of Harel's Statecharts & UML Statecharts ?
"On entering the super-state, which state (whether X,Y,Z) to enter depends on the what the condition C evaluates to."
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
boost::statechart 基本原理文档中描述了使用 custom_reaction 来实现动态选择点。因此,虽然这实际上是一个 RTM,但也许其他人从第一方开始,无论是 UML 还是 Boost Statecharts,都可能会受到这个答案的帮助。
The use of a custom_reaction to implement dynamic choice points is described in the boost::statechart Rationale document. So, while this was actually an RTM, perhaps someone else starting from square one, both on UML as well as Boost Statecharts, might be helped by this answer.