What is state and state diagram?
A state is an abstraction of values and links of an object. Set of values and links are grouped together into a state according to the group behaviour of objects.
State diagram is a graph whose nodes are states and whose directed arcs are transition among states. State diagram specifies the state sequences caused by event sequences.