public abstract class DeviceEvent extends MetadataProvider implements IDeviceEvent, java.lang.Comparable<IDeviceEvent>, java.io.Serializable
Constructor and Description |
---|
DeviceEvent(DeviceEventType type) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IDeviceEvent other) |
static void |
copy(IDeviceEvent source,
DeviceEvent target)
Create a copy of an SPI object.
|
java.lang.String |
getAssetId()
Get id of asset if associated.
|
java.lang.String |
getAssetModuleId()
Get id of asset module.
|
DeviceAssignmentType |
getAssignmentType()
Get assignment type.
|
java.lang.String |
getDeviceAssignmentToken()
Get the device assignment the event pertains to.
|
java.util.Date |
getEventDate()
Get the date the event occurred.
|
DeviceEventType |
getEventType()
Get event type indicator.
|
java.lang.String |
getId()
Get a string that uniquely identifies the event.
|
java.util.Date |
getReceivedDate()
Get the date this event was received.
|
java.lang.String |
getSiteToken()
Get token for site the event pertains to.
|
void |
setAssetId(java.lang.String assetId) |
void |
setAssetModuleId(java.lang.String assetModuleId) |
void |
setAssignmentType(DeviceAssignmentType assignmentType) |
void |
setDeviceAssignmentToken(java.lang.String deviceAssignmentToken) |
void |
setEventDate(java.util.Date eventDate) |
void |
setEventType(DeviceEventType eventType) |
void |
setId(java.lang.String id) |
void |
setReceivedDate(java.util.Date receivedDate) |
void |
setSiteToken(java.lang.String siteToken) |
addOrReplaceMetadata, clearMetadata, copy, copy, getMetadata, getMetadata, removeMetadata, setMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOrReplaceMetadata, clearMetadata, getMetadata, getMetadata, removeMetadata
public DeviceEvent(DeviceEventType type)
public java.lang.String getId()
IDeviceEvent
getId
in interface IDeviceEvent
public void setId(java.lang.String id)
public DeviceEventType getEventType()
IDeviceEvent
getEventType
in interface IDeviceEvent
public void setEventType(DeviceEventType eventType)
public java.lang.String getSiteToken()
IDeviceEvent
getSiteToken
in interface IDeviceEvent
public void setSiteToken(java.lang.String siteToken)
public java.lang.String getDeviceAssignmentToken()
IDeviceEvent
getDeviceAssignmentToken
in interface IDeviceEvent
public void setDeviceAssignmentToken(java.lang.String deviceAssignmentToken)
public DeviceAssignmentType getAssignmentType()
IDeviceEvent
getAssignmentType
in interface IDeviceEvent
public void setAssignmentType(DeviceAssignmentType assignmentType)
public java.lang.String getAssetModuleId()
IDeviceEvent
getAssetModuleId
in interface IDeviceEvent
public void setAssetModuleId(java.lang.String assetModuleId)
public java.lang.String getAssetId()
IDeviceEvent
getAssetId
in interface IDeviceEvent
public void setAssetId(java.lang.String assetId)
public java.util.Date getEventDate()
IDeviceEvent
getEventDate
in interface IDeviceEvent
public void setEventDate(java.util.Date eventDate)
public java.util.Date getReceivedDate()
IDeviceEvent
getReceivedDate
in interface IDeviceEvent
public void setReceivedDate(java.util.Date receivedDate)
public int compareTo(IDeviceEvent other)
compareTo
in interface java.lang.Comparable<IDeviceEvent>
public static void copy(IDeviceEvent source, DeviceEvent target) throws SiteWhereException
source
- target
- SiteWhereException