|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmoteaccess.SensorType
| Field Summary | |
static int |
ACCEL_X
|
static int |
ACCEL_X_FR
|
static int |
ACCEL_Y
|
static int |
ACCEL_Y_FR
|
static int |
ANY
The constants that indicates the different kinds of sensors. |
static int |
ANY_FR
The constants that indicate the default freshness of each sensor. |
static int[] |
freshness
|
static int |
GPS
|
static int |
GPS_FR
|
static int |
HUM
|
static int |
HUM_FR
|
static int |
LIGHT
|
static int |
LIGHT_FR
|
static int |
MAG_X
|
static int |
MAG_X_FR
|
static int |
MAG_Y
|
static int |
MAG_Y_FR
|
static int |
MIC
|
static int |
MIC_FR
|
static int |
NUM_OF_SENSORS
|
static int |
RADIO_STRENGTH
|
static int |
RADIO_STRENGTH_FR
|
private static java.lang.String[] |
sensorNames
An array that indicates the names of the sensor. |
static int |
TEMP
|
static int |
TEMP_FR
|
private int |
type
The internal representation of the sensor type. |
static int |
VOLTAGE
|
static int |
VOLTAGE_FR
|
| Constructor Summary | |
SensorType(int t)
Public constructor of a sensor type from its int representation. |
|
| Method Summary | |
boolean |
equals(java.lang.Object s)
|
static int |
freshness(SensorType st)
Static method that returns the freshness of the passed sensor. |
int |
getSensorType()
Getter for the sensor type. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int ANY
public static final int LIGHT
public static final int TEMP
public static final int MIC
public static final int ACCEL_X
public static final int ACCEL_Y
public static final int MAG_X
public static final int VOLTAGE
public static final int MAG_Y
public static final int GPS
public static final int HUM
public static final int RADIO_STRENGTH
public static final int NUM_OF_SENSORS
public static final int ANY_FR
public static final int LIGHT_FR
public static final int TEMP_FR
public static final int MIC_FR
public static final int ACCEL_X_FR
public static final int ACCEL_Y_FR
public static final int MAG_X_FR
public static final int VOLTAGE_FR
public static final int MAG_Y_FR
public static final int GPS_FR
public static final int HUM_FR
public static final int RADIO_STRENGTH_FR
public static final int[] freshness
private static final java.lang.String[] sensorNames
private int type
| Constructor Detail |
public SensorType(int t)
t - the sensor type int representation.| Method Detail |
public static int freshness(SensorType st)
st - the sensor.
public int getSensorType()
public boolean equals(java.lang.Object s)
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||