public class DeviceEventSupport
extends java.lang.Object
Constructor and Description |
---|
DeviceEventSupport(IDeviceEvent event) |
Modifier and Type | Method and Description |
---|---|
IDeviceEvent |
data() |
IDeviceEvent |
getData() |
java.lang.Double |
getMeasurement(java.lang.String name)
Attempts to get the named measurement if the event is a measurements
event.
|
boolean |
hasMeasurement(java.lang.String name)
Indicates if event has a measurement with the given name.
|
boolean |
isAlert()
Returns true if event is an alert.
|
boolean |
isAlertOfType(java.lang.String type)
Returns true if event is an alert and has the given type.
|
boolean |
isCommandInvocation()
Indicates a command invocation event.
|
boolean |
isCommandResponse()
Indicates a command response event.
|
boolean |
isLocation()
Indicates a location event.
|
boolean |
isMeasurements()
Indicates a measurements event.
|
public DeviceEventSupport(IDeviceEvent event)
public boolean isLocation()
public boolean isMeasurements()
public boolean isCommandInvocation()
public boolean isCommandResponse()
public boolean hasMeasurement(java.lang.String name)
name
- public java.lang.Double getMeasurement(java.lang.String name)
name
- public boolean isAlert()
public boolean isAlertOfType(java.lang.String type)
type
- public IDeviceEvent data()
public IDeviceEvent getData()