public interface Sensor
Modifier and Type | Method and Description |
---|---|
int |
getCommonValue()
Returns the most commonly used value of the sensor as an int (most sensors can return data as ints, if they can't, return -1, 255 or throw an UnsupportedOperationExceptiopn)
|
String |
getCommonValueAsString()
Returns the most commonly used value of the sensor as a string
Recommended Implementation:
return getCommonValue() + ""; |
List<String> |
getModes() |
String |
getName() |
SensorPort |
getPort() |
void |
setNewMode(int mode)
Sets the mode of the sensor
can be specific depending on the type of sensor (ie.
|
String |
toString() |
String getCommonValueAsString()
return getCommonValue() + "";
int getCommonValue()
List<String> getModes()
void setNewMode(int mode)
mode
- SensorPort getPort()
String getName()