public class DeviceStateChangeWithAsset extends DeviceEventWithAsset implements IDeviceStateChange
IDeviceStateChange so that information about the asset
associated with its assignment is available.asset, UNASSOCIATED_ASSET_NAME, wrapped| Constructor and Description |
|---|
DeviceStateChangeWithAsset(IDeviceStateChange wrapped,
IAssetModuleManager assets) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addOrReplaceMetadata, clearMetadata, compareTo, getAssetId, getAssetModuleId, getAssetName, getAssignmentType, getDeviceAssignmentToken, getEventDate, getEventType, getId, getMetadata, getMetadata, getReceivedDate, getSiteToken, getWrapped, removeMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAssetId, getAssetModuleId, getAssignmentType, getDeviceAssignmentToken, getEventDate, getEventType, getId, getReceivedDate, getSiteTokenaddOrReplaceMetadata, clearMetadata, getMetadata, getMetadata, removeMetadatapublic DeviceStateChangeWithAsset(IDeviceStateChange wrapped, IAssetModuleManager assets) throws SiteWhereException
SiteWhereExceptionpublic StateChangeCategory getCategory()
IDeviceStateChangegetCategory in interface IDeviceStateChangepublic StateChangeType getType()
IDeviceStateChangegetType in interface IDeviceStateChangepublic java.lang.String getPreviousState()
IDeviceStateChangegetPreviousState in interface IDeviceStateChangepublic java.lang.String getNewState()
IDeviceStateChangegetNewState in interface IDeviceStateChangepublic java.util.Map<java.lang.String,java.lang.String> getData()
IDeviceStateChangegetData in interface IDeviceStateChange