Exercise 2: Draw a State machine Diagram for a Telephone line (a process in a smartphone OS) with the following behavior: When the telephone app is not active, the telephone line is idle. When the app is activated, the line gives a dial tone and can accept the dialing of digits. If after getting the dial tone, the user doesn't dial a number within a time interval of 10 seconds, then a time-out occurs, and the line gets idle again. A button on the app can re- activate the line. After dialing a number, if the number is invalid then a recorded message is played at the end of which the line becomes idle. Upon entry of a valid number, the phone app tries to connect a call & routes it to the proper destination. If the called person answers the phone, the conversation can occur, and the line is in an on- call state. When the called person hangs up, the phone app disconnects and the line goes to the idle state.
Exercise 2:
Draw a State machine Diagram for a Telephone line (a process in a smartphone OS) with the following behavior:
When the telephone app is not active, the telephone line is idle. When the app is activated, the line gives a dial tone and can accept the dialing of digits.
If after getting the dial tone, the user doesn't dial a number within a time interval of 10 seconds, then a time-out occurs, and the line gets idle again. A button on the app can re- activate the line.
After dialing a number, if the number is invalid then a recorded message is played at the end of which the line becomes idle.
Upon entry of a valid number, the phone app tries to connect a call & routes it to the proper destination.
If the called person answers the phone, the conversation can occur, and the line is in an on- call state. When the called person hangs up, the phone app disconnects and the line goes to the idle state.
Step by step
Solved in 3 steps with 1 images