State Transition Diagram for A System 8/24/2018 Discrete Structure 1
State Transition Diagram State transition diagram introduction Draw transition diagram and use case diagram for the system List questions 8/24/2018 Discrete Structure 2
Elements in a State Transition Diagram a mode of behavior last for a period Event Causes the transition from a state to another state Action The behavior that the system reacts to an event Condition A condition for an action to an event Whether a behavior is a state or an event or an action depends on the real systems. 2018/8/24 Software Engineering 3
State, Event, Action, Condition Event[Condition]/Action State 2
Event, Action User System Operate on the system (Event) Respond to the user’s operation (Action) When the response is given under certain conditions, the conditions should be added.
An Example - Login Teacher & TA main function page Login Page “Login” clicked [correct login & Teacher & TA] /Display Secretary main function page “Login” clicked [incorrect password & user name] /give warning Login Page “Login” clicked [correct login & TA] /Display Secretary main function page “Login” clicked [correct login & secretary] /Display Secretary main function page “Login” clicked [correct login & teacher ] /Display Secretary main function page Secretary main function page TA main function page Teacher main function page
An Example - Mark Time Table Teacher & TA main function page “Mark time table” pressed /Display time table Time table page Secretary main function page “Finished” pressed/Display time table