【问题标题】:Ways to implement condition-based inner initial state selection in boost::statechart?在 boost::statechart 中实现基于条件的内部初始状态选择的方法?
【发布时间】:2011-03-10 14:37:39
【问题描述】:

在 boost::statechart 中有哪些可能的方法来实现Comparison of Harel's Statecharts & UML Statecharts 的幻灯片 25 中描述的初始状态选择?

“在进入超状态时,进入哪个状态(X,Y,Z)取决于条件 C 的计算结果。”

【问题讨论】:

    标签: boost boost-statechart


    【解决方案1】:

    boost::statechart Rationale 文档中描述了使用 custom_reaction 来实现动态选择点。因此,虽然这实际上是一个 RTM,但也许其他人从一开始,无论是在 UML 还是在 Boost Statecharts 上,这个答案都可能会有所帮助。

    【讨论】:

      猜你喜欢
      • 2015-12-07
      • 2021-05-20
      • 2011-05-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-06
      • 2018-03-09
      • 2020-08-02
      相关资源
      最近更新 更多