< Previous | Next >

Creating the Disconnected state

The Disconnected state signals either that the call has been disconnected, or that too much time has passed between dialing entries.

In this step, you will do the following:
  1. From the palette, click the state icon, and drop it onto the canvas well to the right of the Idle state.
  2. Rename this new state Disconnected.
  3. Create an entry state on the Deposit state named PlayDisconnectedTone with the following code:
    System.out.println("Disconnected...");
Your state machine should look like the one in this image:
The Disconnected state in the context of the entire state machine.

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
< Previous | Next >