|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
dlife.robot.Device
dlife.robot.ArraySensor<Boolean>
dlife.robot.aibo.AiboPawButtons
public class AiboPawButtons
A collection containing all paw buttons located on the physical Aibo. There are a total of 4 buttons on the paws and their values will be stored in this structure. The paw button values are either true (pressed) or false (not pressed).
| Field Summary | |
|---|---|
static int |
LEFT_FRONT
The index of the Aibo's left front paw button value in the values array of this ArraySensor. |
static int |
LEFT_REAR
The index of the Aibo's left rear paw button value in the values array of this ArraySensor. |
static int |
RIGHT_FRONT
The index of the Aibo's right front paw button value in the values array of this ArraySensor. |
static int |
RIGHT_REAR
The index of the Aibo's right rear paw button value in the values array of this ArraySensor. |
| Fields inherited from class dlife.robot.ArraySensor |
|---|
length, values |
| Fields inherited from class dlife.robot.Device |
|---|
DEFAULT_GUI_UPDATE_DELAY, DEFAULT_READ_DELAY, myRobot, readCount |
| Constructor Summary | |
|---|---|
AiboPawButtons()
Construct a new AiboPawButtons sensor. |
|
| Method Summary | |
|---|---|
protected DeviceDisplay[] |
createGUIObjects()
Build the GUI for this AiboPawButtons Sensor. |
void |
freeze()
Does nothing. |
boolean |
isPressed(int pawNumber)
Returns whether or not the specified paw button is pressed. |
void |
readStateFromRobot()
Retrieves values representing the paw button states from the Aibo robot and stores them in the values array Unpressed buttons are stored as false, and pressed buttons are stored as true. |
| Methods inherited from class dlife.robot.ArraySensor |
|---|
getAverage, getAverage, getMaximum, getMaximum, getMaximumIndex, getMaximumIndex, getMinimum, getMinimum, getMinimumIndex, getMinimumIndex, getNumValues, getSubset, getValue, getValues |
| Methods inherited from class dlife.robot.Device |
|---|
getAutoRead, getGUI, getGUIUpdateDelay, getReadDelay, getRobot, getSensorReadCount, getSensorReadRate, setAutoRead, setGUIUpdateDelay, setReadDelay, setRobot, shutDown, startAutoReadTimer, startUp, stopAutoReadTimer |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LEFT_FRONT
public static final int RIGHT_FRONT
public static final int LEFT_REAR
public static final int RIGHT_REAR
| Constructor Detail |
|---|
public AiboPawButtons()
| Method Detail |
|---|
public void freeze()
freeze in class Devicepublic void readStateFromRobot()
readStateFromRobot in class Devicepublic boolean isPressed(int pawNumber)
pawNumber - one of the class constants indicating which paw data to
return
protected DeviceDisplay[] createGUIObjects()
createGUIObjects in class Device
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||