|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.platform.tmote.SensirionSht11.Sht11Sensor<Q>
protected abstract static class SensirionSht11.Sht11Sensor<Q extends javax.measure.quantity.Quantity>
Private: for Sentilla internal use only.
Field Summary | |
---|---|
protected javax.measure.Measurable<Q> |
result
|
Fields inherited from interface com.sentilla.system.Action |
---|
DONE, ERROR, IDLE, PENDING |
Constructor Summary | |
---|---|
protected |
SensirionSht11.Sht11Sensor()
|
Method Summary | |
---|---|
Action |
block()
Block an indefinite amount of time until this Action is no longer pending. |
Action |
block(int timeoutMilli)
Block a defined amount of time or until the Action is no longer pending. |
Action |
cancel()
Cancel this Action if PENDING. |
byte |
getActionState()
Get the current state of this Action: IDLE, PENDING, DONE, or ERROR. |
javax.measure.Measurable<Q> |
getResult()
Asynchronous interface to get the result of the last sensor read operation. |
boolean |
isDone()
Return true is this Action is DONE. |
javax.measure.Measurable<Q> |
read()
Read a new measurement and return the result. |
Sensor<Q> |
setRead()
Asynchronous interface to set up a read operation on a sensor. |
abstract Action |
submit()
Submit this Action for processing by the action engine. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.measure.Measurable<Q extends javax.measure.quantity.Quantity> result
Constructor Detail |
---|
protected SensirionSht11.Sht11Sensor()
Method Detail |
---|
public abstract Action submit()
Action
submit
in interface Action
public Action block()
Action
block
in interface Action
public Action block(int timeoutMilli)
Action
block
in interface Action
timeoutMilli
- the maximum number of milliseconds to block
public Action cancel()
Action
cancel
in interface Action
public byte getActionState()
Action
getActionState
in interface Action
public boolean isDone()
Action
isDone
in interface Action
public javax.measure.Measurable<Q> read()
Sensor
After reading a sensor, be sure to read its value using
Measureable.doubleValue(unit)
, where unit
defines the resulting unit for the reading (such as SI.Celsius for a
temperature reading).
read
in interface Sensor<Q extends javax.measure.quantity.Quantity>
public Sensor<Q> setRead()
Sensor
submit()
function to initiating the sensor reading.
setRead
in interface Sensor<Q extends javax.measure.quantity.Quantity>
public javax.measure.Measurable<Q> getResult()
Sensor
getResult
in interface Sensor<Q extends javax.measure.quantity.Quantity>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |