|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
orbotix.robot.base.Robot
public class Robot
Class to represent an available robotic device.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface android.os.Parcelable |
---|
android.os.Parcelable.Creator |
Field Summary | |
---|---|
static java.lang.String |
ACTION_FOUND
Action used in broadcast intent when a robot is found |
static java.lang.String |
EXTRA_ROBOT_ID
Extra data used in broadcast intent |
static int |
OBERVABLE_MAIN_APP_CORRUPT_STATE_CHANGED
|
static int |
OBSERVABLE_CONNECTED_STATE_CHANGED
|
static int |
OBSERVABLE_NAME_CHANGED
|
static int |
OBSERVABLE_UNDER_CONTROL_STATE_CHANGED
|
Fields inherited from interface android.os.Parcelable |
---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Method Summary | |
---|---|
int |
describeContents()
|
java.lang.String |
getBluetoothName()
Accessor to the bluetooth name of the robot. |
android.bluetooth.BluetoothDevice |
getDevice()
Accessor to the underlaying BluetoothDevice |
java.lang.String |
getName()
Accessor to the robot's name. |
java.lang.String |
getUniqueId()
Provides a unique identifier for the robot. |
java.lang.Boolean |
isConnected()
Accessor to check the connection state. |
boolean |
isKnown()
Method to check if the robot is known. |
boolean |
isMainApplicationCorrupt()
|
boolean |
isUnderControl()
Method to check the connection status. |
void |
setName(java.lang.String newName)
|
java.lang.String |
toString()
Provides a formated string of the robot name and status. |
void |
writeToParcel(android.os.Parcel dest,
int flags)
Used for serializing Robot objects. |
Methods inherited from class java.util.Observable |
---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int OBSERVABLE_UNDER_CONTROL_STATE_CHANGED
public static final int OBSERVABLE_CONNECTED_STATE_CHANGED
public static final int OBERVABLE_MAIN_APP_CORRUPT_STATE_CHANGED
public static final int OBSERVABLE_NAME_CHANGED
public static final java.lang.String ACTION_FOUND
public static final java.lang.String EXTRA_ROBOT_ID
Method Detail |
---|
public android.bluetooth.BluetoothDevice getDevice()
public java.lang.String getBluetoothName()
public java.lang.String getName()
public void setName(java.lang.String newName)
public java.lang.String getUniqueId()
public boolean isKnown()
public boolean isUnderControl()
public boolean isMainApplicationCorrupt()
public java.lang.Boolean isConnected()
public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |