DEFINITION : State transition diagram / State machine diagram. A visual representation of a system's behavior, showing the different states it can be in and the transitions between those states . Describe the flow of control from one state to another. The state changes when an event is triggered.
PURPOSE : Model complex systems' behavior. Define system states and transitions. Analyze and design system interactions. To model dynamic aspect of a system. To define different state of an object.
BASIC COMPONENTS ; Initial State : define the beginning of system. State : define the condition or state of an object. Transition : define the change from one state to another. Final State : define the end of system. I nitial state State Transition Final State
To draw a State diagram: Identify the object to be analysed Identify states Identify the events