是否可以在 UML 中模拟从外部状态到复合状态的子状态的转换,如下图(State3->State1.2)?
如果是这样,语义是什么?
我猜当事件发生在 State3
我对吗?
最佳答案
是的你可以。从上层建筑:
Explicit entry: If the transition goes to a substate of the composite state, then that substate becomes active and its entry code is executed after the execution of the entry code of the composite state. This rule applies recursively if the transition terminates on a transitively nested substate.
关于UML 状态机子状态转换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14681522/