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, removeMetadata
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 DeviceStateChangeWithAsset(IDeviceStateChange wrapped, IAssetModuleManager assets) throws SiteWhereException
SiteWhereException
public StateChangeCategory getCategory()
IDeviceStateChange
getCategory
in interface IDeviceStateChange
public StateChangeType getType()
IDeviceStateChange
getType
in interface IDeviceStateChange
public java.lang.String getPreviousState()
IDeviceStateChange
getPreviousState
in interface IDeviceStateChange
public java.lang.String getNewState()
IDeviceStateChange
getNewState
in interface IDeviceStateChange
public java.util.Map<java.lang.String,java.lang.String> getData()
IDeviceStateChange
getData
in interface IDeviceStateChange