public Measurement<T>
A general representation of ongoing or completed measurement. Could be regular.
Modifier and Type | Method and Description |
---|---|
Device |
getDevice() |
java.lang.Throwable |
getError()
Last thrown exception. Null if no exceptions are thrown
|
T |
getResult()
Get last measurement result or wait for measurement to complete and return its result. Synchronous call.
|
java.time.Instant |
getTime()
Get the time of the last measurement
|
boolean |
isFinished()
Measurement is complete or stopped and could be recycled
|
boolean |
isStarted()
Measurement is started
|
void |
start()
Begin the measurement
|
boolean |
stop()
Stop the measurement
|
Device getDevice()
void start()
Begin the measurement
boolean stop()
Stop the measurement
boolean isStarted()
Measurement is started
boolean isFinished()
Measurement is complete or stopped and could be recycled
java.time.Instant getTime()
Get the time of the last measurement
T getResult()
Get last measurement result or wait for measurement to complete and return its result. Synchronous call.
java.lang.Throwable getError()
Last thrown exception. Null if no exceptions are thrown