|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This service provides control and status of windows in the car.
| Field Summary | |
static int |
LEFT_BACK
|
static int |
LEFT_FRONT
|
static String |
PUBLISH_KEY
The path in the environment where the LockAgent expects this
service to be published. |
static int |
RIGHT_BACK
|
static int |
RIGHT_FRONT
|
| Method Summary | |
void |
down(int which)
Lowers a window and changes current state. |
byte |
getStatus()
Returns current state of all windows. |
boolean |
isLowered(int which)
|
void |
setStatus(int newstate)
Sets the states of all doors. |
void |
up(int which)
Raises a window and changes current state. |
| Field Detail |
public static final String PUBLISH_KEY
environment where the LockAgent expects this
service to be published.
Value: /local/public/car/windows
public static final int RIGHT_FRONT
public static final int LEFT_FRONT
public static final int RIGHT_BACK
public static final int LEFT_BACK
| Method Detail |
public void up(int which)
which - number of the window to be opened or closed Use the
constants defined in WindowService.public void down(int which)
which - number of the window to be opened or closed Use the
constants defined in WindowService.public boolean isLowered(int which)
true if a specific window is loweredpublic byte getStatus()
public void setStatus(int newstate)
newstate - the new state status is set to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||