UML:最终状态
UML: final state
假设我们有以下状态图(来自 UML 参考书),它描述了某个对象的状态:
如果对象现在处于状态 Y
并且 e
事件被触发,对象将在进入最终状态后进入状态 Z
,假设在 e
之后事件没有更多的事件?请问我自己不是很清楚
引用 2.5 (FinalState) 的上层建筑:
14.5.2.1 Description
A special kind of State, which, when entered, signifies that the enclosing Region has completed. If the enclosing Region is directly contained in a StateMachine and all other Regions in that StateMachine also are completed, then it means that the entire StateMachine behavior is completed.
这意味着在您的具体情况下:当 e
发生时,状态 X
已完成并无条件转移到 z
。
假设我们有以下状态图(来自 UML 参考书),它描述了某个对象的状态:
如果对象现在处于状态 Y
并且 e
事件被触发,对象将在进入最终状态后进入状态 Z
,假设在 e
之后事件没有更多的事件?请问我自己不是很清楚
引用 2.5 (FinalState) 的上层建筑:
14.5.2.1 Description
A special kind of State, which, when entered, signifies that the enclosing Region has completed. If the enclosing Region is directly contained in a StateMachine and all other Regions in that StateMachine also are completed, then it means that the entire StateMachine behavior is completed.
这意味着在您的具体情况下:当 e
发生时,状态 X
已完成并无条件转移到 z
。