一个关于uml state chart 的问题
可是关于如何克服处理很多状态下通用行为的处理,不知到 uml如何实现? 如果具体到C++如何实现?多谢!
What's missing in the traditional state machines is the mechanism for factoring out the common behavior in order to share it across many states.
UML state machines addresses exactly this shortcoming of the conventional FSMs. They provide a number of features for eliminating the repetitions so that the complexity of a UML state machine no longer explodes but tends to faithfully represent the complexity of the reactive system it describes. Obviously, these features are very interesting to software developers, because only they make the whole state machine approach truly applicable to real-life problems.