public class DeviceMeasurement extends DeviceEvent implements IDeviceMeasurement, java.io.Serializable
Constructor and Description |
---|
DeviceMeasurement() |
Modifier and Type | Method and Description |
---|---|
static DeviceMeasurement |
copy(IDeviceMeasurement input)
Create a copy of an SPI object.
|
java.lang.String |
getName()
Get measurement name.
|
java.lang.Double |
getValue()
Get measurement value.
|
void |
setName(java.lang.String name) |
void |
setValue(java.lang.Double value) |
compareTo, copy, getAssetId, getAssetModuleId, getAssignmentType, getDeviceAssignmentToken, getEventDate, getEventType, getId, getReceivedDate, getSiteToken, setAssetId, setAssetModuleId, setAssignmentType, setDeviceAssignmentToken, setEventDate, setEventType, setId, setReceivedDate, setSiteToken
addOrReplaceMetadata, clearMetadata, copy, copy, getMetadata, getMetadata, removeMetadata, setMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAssetId, getAssetModuleId, getAssignmentType, getDeviceAssignmentToken, getEventDate, getEventType, getId, getReceivedDate, getSiteToken
addOrReplaceMetadata, clearMetadata, getMetadata, getMetadata, removeMetadata
public java.lang.String getName()
IMeasurementEntry
getName
in interface IMeasurementEntry
public void setName(java.lang.String name)
public java.lang.Double getValue()
IMeasurementEntry
getValue
in interface IMeasurementEntry
public void setValue(java.lang.Double value)
public static DeviceMeasurement copy(IDeviceMeasurement input) throws SiteWhereException
input
- SiteWhereException