|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCarConnection
Copyright (c) 2003 Sony Ericsson Mobile Communications AB
All Rights Reserved.
CarConnection is the interface between the car and the MIDlet. All car commands is stored in this class. This object will retrieve user commands and send them to the car. It will also set the car status, such as when the car is not connected, charging or ready to run.
Constructor Summary | |
CarConnection(CarAPI carAPI)
The constructor for creating a CarConnection object,
which sends command to the car and listen for data from the car.
|
Method Summary | |
boolean |
processEvents(java.io.InputStream is,
java.io.OutputStream os)
Processes all messages from the car (AT-commands) and all user events from the GUI (via the CarAPI). |
void |
quitCarLink(java.io.OutputStream os)
Tell the car that we want to quit by sending the NO keypress. |
void |
resetCarData()
Resets the internal car data to the state it's supposed to be in when it first connects to the phone. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CarConnection(CarAPI carAPI)
CarConnection
object,
which sends command to the car and listen for data from the car.
CarAPI
is needed to be able to retrieve user input.
carAPI
- the CarAPI
object needed to retrieve user
inputMethod Detail |
public void resetCarData()
public void quitCarLink(java.io.OutputStream os)
public boolean processEvents(java.io.InputStream is, java.io.OutputStream os)
is
- The InputStream
from the car connectionos
- The OutputStream
to the car connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |