提升状态图与元状态机 [英] Boost Statechart vs. Meta State Machine
问题描述
显然提振,其中包括状态机的两个独立的库:状态图和元状态机(MSM)。该标语给出非常类似的描述:
Apparently boost contains two separate libraries for state machines: Statechart and Meta State Machine (MSM). The taglines give very similar descriptions:
- Boost.Statechart - 任意复杂的有限状态机可以轻松的可读性和可维护性的C ++ code实施
- 元状态机 - 为前pressive UML2有限状态机非常高的性能库
你知道什么是关键的区别,什么是考虑在两者之间选择?
Do you know what are the key differences and what are considerations in choosing between the two?
推荐答案
由于似乎有很大的兴趣,请允许我给我的(明显偏)看来,这应该因此可以用一粒盐采取:
As there seems to be much interest, please allow me to give my (obviously biased) opinion, which should therefore be taken with a grain of salt:
- MSM更快
- MSM不需要RTTI或任何虚拟
- MSM拥有较完整的UML2支持(例如内部转换,UML-符合正交区域)
- MSM提供了一个描述性的语言(实际数)。例如,使用eUML前端,过渡可谓源+事件[后卫] /动作==目标
- MSM会让你受苦编译更大的状态机,所以你需要一个pretty最近的编译器(G ++> = 4.x版,VC> = 9)
您可以通过寻找MSM审查过程中发布的评论让自己变成一个更好的意见。这个主题是开发者邮件列表上的广泛讨论。
You can make yourself a better opinion by looking for comments posted during the review of MSM. This subject was much discussed on the developer list.
这篇关于提升状态图与元状态机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!