public class DeviceStateChange extends DeviceEvent implements IDeviceStateChange, java.io.Serializable
Constructor and Description |
---|
DeviceStateChange() |
Modifier and Type | Method and Description |
---|---|
static DeviceStateChange |
copy(IDeviceStateChange input)
Create a copy of an SPI object.
|
StateChangeCategory |
getCategory()
Get category of state change.
|
java.util.Map<java.lang.String,java.lang.String> |
getData()
Get data associated with the state change.
|
java.lang.String |
getNewState()
Get the requested new state.
|
java.lang.String |
getPreviousState()
Get the previous (or assumed previous) state.
|
StateChangeType |
getType()
Get type of state change.
|
void |
setCategory(StateChangeCategory category) |
void |
setData(java.util.Map<java.lang.String,java.lang.String> data) |
void |
setNewState(java.lang.String newState) |
void |
setPreviousState(java.lang.String previousState) |
void |
setType(StateChangeType type) |
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 StateChangeCategory getCategory()
IDeviceStateChange
getCategory
in interface IDeviceStateChange
public void setCategory(StateChangeCategory category)
public StateChangeType getType()
IDeviceStateChange
getType
in interface IDeviceStateChange
public void setType(StateChangeType type)
public java.lang.String getPreviousState()
IDeviceStateChange
getPreviousState
in interface IDeviceStateChange
public void setPreviousState(java.lang.String previousState)
public java.lang.String getNewState()
IDeviceStateChange
getNewState
in interface IDeviceStateChange
public void setNewState(java.lang.String newState)
public java.util.Map<java.lang.String,java.lang.String> getData()
IDeviceStateChange
getData
in interface IDeviceStateChange
public void setData(java.util.Map<java.lang.String,java.lang.String> data)
public static DeviceStateChange copy(IDeviceStateChange input) throws SiteWhereException
input
- SiteWhereException