public interface Measurement
Modifier and Type | Interface and Description |
---|---|
static interface |
Measurement.Listener |
Modifier and Type | Method and Description |
---|---|
long |
getAge()
Retrieve the age of this measurement.
|
long |
getBirthtime()
Return the creation time of this measurement;
|
java.lang.String |
getGenericName() |
java.lang.String |
getName(android.content.Context context) |
Range<? extends Unit> |
getRange()
Retrieve the valid range of the measurement.
|
java.lang.Object |
getSerializedValue()
Return the value of this measurement as a type good for serialization.
|
Unit |
getValue()
Return the value of this measurement.
|
boolean |
hasRange()
Determine if this measurement has a valid range.
|
void |
setTimestamp(long timestamp)
Set the birth timestamp for this measurement.
|
SimpleVehicleMessage |
toVehicleMessage() |
long getAge()
void setTimestamp(long timestamp)
timestamp
- the new timestamp, in milliseconds since the epoch.boolean hasRange()
Range<? extends Unit> getRange()
Unit getValue()
SimpleVehicleMessage toVehicleMessage()
long getBirthtime()
java.lang.String getName(android.content.Context context)
java.lang.String getGenericName()
java.lang.Object getSerializedValue()