A B C D G H I K P Q R S T V W

A

aboutString - Static variable in class BluetoothCar
 
allUpdated() - Method in class GUI
 

B

BluetoothCar - class BluetoothCar.
Copyright (c) 2003 Sony Ericsson Mobile Communications AB
All Rights Reserved.
BluetoothCar() - Constructor for class BluetoothCar
Constructs a new BluetoothCar object.

C

CAR_CHARGING - Static variable in class CarAPI
Constant for car charging.
CAR_DIRECTION_LEFT - Static variable in class CarAPI
Constant for car turning left.
CAR_DIRECTION_LIGHT_LEFT - Static variable in class CarAPI
Constant for car turning left lightly.
CAR_DIRECTION_LIGHT_RIGHT - Static variable in class CarAPI
Constant for car turning right lightly.
CAR_DIRECTION_RIGHT - Static variable in class CarAPI
Constant for car turning right.
CAR_DIRECTION_STRAIGHT - Static variable in class CarAPI
Constant for car going straight.
CAR_NO_LINK - Static variable in class CarAPI
Constant for no connection to the car.
CAR_READY - Static variable in class CarAPI
Constant for car ready to drive.
CAR_SPEED_1 - Static variable in class CarAPI
Constant for car driving forward with speed 1.
CAR_SPEED_2 - Static variable in class CarAPI
Constant for car driving forward with speed 2.
CAR_SPEED_3 - Static variable in class CarAPI
Constant for car driving forward with speed 3.
CAR_SPEED_N - Static variable in class CarAPI
Constant for car stopped.
CAR_SPEED_R - Static variable in class CarAPI
Constant for car driving backward.
CarAPI - class CarAPI.
Copyright (c) 2003 Sony Ericsson Mobile Communications AB
All Rights Reserved.
CarAPI(BluetoothCar) - Constructor for class CarAPI
Constructs a new CarAPI object.
CarConnection - class CarConnection.
Copyright (c) 2003 Sony Ericsson Mobile Communications AB
All Rights Reserved.
CarConnection(CarAPI) - Constructor for class CarConnection
The constructor for creating a CarConnection object, which sends command to the car and listen for data from the car.
closeAll() - Method in class SPPServer
Closes the connection and the SPP service.
commandAction(Command, Displayable) - Method in class GUI
Respond to menu commands.
connectionOpen() - Method in class SPPServer
 

D

decSpeed() - Method in class CarAPI
Decrease the speed by one.
destroyApp(boolean) - Method in class BluetoothCar
This will cleanup and release all resources.

G

GUI - class GUI.
Copyright (c) 2003 Sony Ericsson Mobile Communications AB
All Rights Reserved.
GUI(CarAPI, BluetoothCar) - Constructor for class GUI
Constructs a new GUI object.
getAndClearDirection() - Method in class CarAPI
Clears the flag and retrieves the direction set for the Bluetooth car.
getAndClearSpeed() - Method in class CarAPI
Clears the flag and retrieves the speed set for the Bluetooth car.
getDirection() - Method in class CarAPI
Retrieves the direction set for the Bluetooth car.
getSpeed() - Method in class CarAPI
Retrieves the speed set for the Bluetooth car.
getStatus() - Method in class CarAPI
Returns the current status of the Bluetooth car.
guiUpdated() - Method in class BluetoothCar
Checks if the GUI has processed all pending car events.

H

hideNotify() - Method in class GUI
Called by the system to notify us that the canvas is now at least partially obscured by another application window, when it previously has been completely visible.

I

incSpeed() - Method in class CarAPI
Increase the speed by one.
isAppActive() - Method in class CarAPI
Check if the MIDlet is in Active state and shown.
isDirectionChanged() - Method in class CarAPI
Check if a new direction is set for the Bluetooth car.
isSpeedChanged() - Method in class CarAPI
Check if a new speed is set for the Bluetooth car.

K

keyPressed(int) - Method in class GUI
Handles user input from the buttons.
keyReleased(int) - Method in class GUI
Handles user input from the buttons.
keyRepeated(int) - Method in class GUI
Handles user input from the buttons.

P

paint(Graphics) - Method in class GUI
Invoked by system to draw canvas.
pauseApp() - Method in class BluetoothCar
Signals the MIDlet to enter Paused state.
pointerDragged(int, int) - Method in class GUI
Called when the pointer is dragged.
pointerPressed(int, int) - Method in class GUI
Called when the pointer is pressed.
pointerReleased(int, int) - Method in class GUI
Called by the system when the pointer is released.
processEvents(InputStream, OutputStream) - Method in class CarConnection
Processes all messages from the car (AT-commands) and all user events from the GUI (via the CarAPI).

Q

quitCarLink(OutputStream) - Method in class CarConnection
Tell the car that we want to quit by sending the NO keypress.

R

resetCarData() - Method in class CarConnection
Resets the internal car data to the state it's supposed to be in when it first connects to the phone.
run() - Method in class GUI
The GUI-loop.
run() - Method in class SPPServer
This is called by the constructor of the class.

S

SPPServer - class SPPServer.
Copyright (c) 2003 Sony Ericsson Mobile Communications AB
All Rights Reserved.
SPPServer(CarAPI, BluetoothCar) - Constructor for class SPPServer
Constructs a new SPPServer object, which will create the CarConnection object, define the service for the serial port (SPP) and then start running itself.
setAppActive(boolean) - Method in class CarAPI
Called when the MIDlet switches between the Paused and the Active state and when the Canvas in GUI switches between being hidden and shown.
setDirection(int) - Method in class CarAPI
Controls the speed of the car.
setSpeed(int) - Method in class CarAPI
Controls the speed of the car.
setStatus(int) - Method in class CarAPI
Sets the current status of the Bluetooth car.
showNotify() - Method in class GUI
Called by the system to notify us that the canvas is now completely visible, when it previously has been at least partially obscured by another application window.
sizeChanged(int, int) - Method in class GUI
Called when the drawable area of the Canvas has been changed.
startApp() - Method in class BluetoothCar
Signals the MIDlet that it has entered the Active state.
startDisconnectTimer() - Method in class CarAPI
Starts a timer that will set the flag timeToCloseConnection, which is checked by the processEvents method in CarConnection (looped from SPPServer).
stop() - Method in class CarAPI
This will stop the car.
stopRecording() - Method in class GUI
 
stopReplaying() - Method in class GUI
 
stopTimer() - Method in class CarAPI
Stops the disconnectTimer.
stopWaiting() - Method in class CarAPI
Releases any thread that is trapped in wait mode in the waitUntilActive() method above.

T

timeToCloseConnection - Variable in class CarAPI
Flag indicating that the car connection should close as soon as possible.
turnLeft() - Method in class CarAPI
Sets the car direction to turn one step to the left.
turnRight() - Method in class CarAPI
Sets the car direction to turn one step to the right.

V

versionString - Static variable in class BluetoothCar
 

W

waitUntilActive() - Method in class CarAPI
Puts the calling thread into wait mode if the MIDlet is inactive or not visible and if there is no connection to the car and the GUI has processed that state (i.e. the CAR_NO_LINK state).

A B C D G H I K P Q R S T V W