UML Modelling:State Diagram
state diagram UML State
State diagram is mainly used in describing the dynamic behavior of an object during its existence, performance for the sequence of States that experienced by an object, cause a events of State transition (Event), and the action trigged by State transition(Action). Generally we can use a state machine for modeling the life cycle of an object, state diagrams are used to display the state machine (State Machine Diagram), focusing on the control flow of describing state diagram.
The sample below, showed the state diagram of Door, caused the transfer event, and accompanied by the state transition actions ( action ).
Status include Opened,Closed,Locked. Events include Open,Close, Unlock.
Notice:
A. Not all the events will trigger state transition, for example when the door is opened, the event locked will not happen.
B. There is guard condition in transition, for example only doorWay->isEmpty, the event would happen.
Allen Wood 发布于 2014-02-27 14:58:16
1118
0
0
0
0
点此克隆文件
我们会认真核实调查,为了保护您和被举报人的权利,请您慎重填写举报原因。
确定 关闭
0 条评论
发表评论 
分享到社交网络