public class SiteWhereContext extends java.lang.Object implements ISiteWhereContext
| Constructor and Description |
|---|
SiteWhereContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeviceEvent(IDeviceEvent event)
Helper function for add an arbitrary device event.
|
java.util.List<IDeviceAlert> |
getDeviceAlerts()
Get the
IDeviceAlert events. |
IDeviceAssignment |
getDeviceAssignment()
Get current assignment for device associated with the request.
|
java.util.List<IDeviceCommandInvocation> |
getDeviceCommandInvocations()
Get the
IDeviceCommandInvocation events. |
java.util.List<IDeviceCommandResponse> |
getDeviceCommandResponses()
Get the
IDeviceCommandResponse events. |
java.util.List<IDeviceLocation> |
getDeviceLocations()
Get the
IDeviceLocation events. |
java.util.List<IDeviceMeasurements> |
getDeviceMeasurements()
Get the
IDeviceMeasurements events. |
java.lang.String |
getReplyTo()
Get information for replying to originator.
|
java.util.List<IDeviceAlertCreateRequest> |
getUnsavedDeviceAlerts()
Get a list of device alerts that have not been persisted.
|
java.util.List<IDeviceLocationCreateRequest> |
getUnsavedDeviceLocations()
Get a list of device locations that have not been persisted.
|
java.util.List<IDeviceMeasurementsCreateRequest> |
getUnsavedDeviceMeasurements()
Get a list of device measurements that have not been persisted.
|
void |
setDeviceAlerts(java.util.List<IDeviceAlert> deviceAlerts) |
void |
setDeviceAssignment(IDeviceAssignment deviceAssignment) |
void |
setDeviceCommandInvocations(java.util.List<IDeviceCommandInvocation> deviceCommandInvocations) |
void |
setDeviceCommandResponses(java.util.List<IDeviceCommandResponse> deviceCommandResponses) |
void |
setDeviceLocations(java.util.List<IDeviceLocation> deviceLocations) |
void |
setDeviceMeasurements(java.util.List<IDeviceMeasurements> deviceMeasurements) |
void |
setReplyTo(java.lang.String replyTo) |
void |
setUnsavedDeviceAlerts(java.util.List<IDeviceAlertCreateRequest> unsavedDeviceAlerts) |
void |
setUnsavedDeviceLocations(java.util.List<IDeviceLocationCreateRequest> unsavedDeviceLocations) |
void |
setUnsavedDeviceMeasurements(java.util.List<IDeviceMeasurementsCreateRequest> unsavedDeviceMeasurements) |
public IDeviceAssignment getDeviceAssignment()
ISiteWhereContextgetDeviceAssignment in interface ISiteWhereContextpublic void setDeviceAssignment(IDeviceAssignment deviceAssignment)
public java.util.List<IDeviceMeasurementsCreateRequest> getUnsavedDeviceMeasurements()
ISiteWhereContextgetUnsavedDeviceMeasurements in interface ISiteWhereContextpublic void setUnsavedDeviceMeasurements(java.util.List<IDeviceMeasurementsCreateRequest> unsavedDeviceMeasurements)
public java.util.List<IDeviceLocationCreateRequest> getUnsavedDeviceLocations()
ISiteWhereContextgetUnsavedDeviceLocations in interface ISiteWhereContextpublic void setUnsavedDeviceLocations(java.util.List<IDeviceLocationCreateRequest> unsavedDeviceLocations)
public java.util.List<IDeviceAlertCreateRequest> getUnsavedDeviceAlerts()
ISiteWhereContextgetUnsavedDeviceAlerts in interface ISiteWhereContextpublic void setUnsavedDeviceAlerts(java.util.List<IDeviceAlertCreateRequest> unsavedDeviceAlerts)
public java.util.List<IDeviceMeasurements> getDeviceMeasurements()
ISiteWhereContextIDeviceMeasurements events.getDeviceMeasurements in interface ISiteWhereContextpublic void setDeviceMeasurements(java.util.List<IDeviceMeasurements> deviceMeasurements)
public java.util.List<IDeviceLocation> getDeviceLocations()
ISiteWhereContextIDeviceLocation events.getDeviceLocations in interface ISiteWhereContextpublic void setDeviceLocations(java.util.List<IDeviceLocation> deviceLocations)
public java.util.List<IDeviceAlert> getDeviceAlerts()
ISiteWhereContextIDeviceAlert events.getDeviceAlerts in interface ISiteWhereContextpublic void setDeviceAlerts(java.util.List<IDeviceAlert> deviceAlerts)
public java.util.List<IDeviceCommandInvocation> getDeviceCommandInvocations()
ISiteWhereContextIDeviceCommandInvocation events.getDeviceCommandInvocations in interface ISiteWhereContextpublic void setDeviceCommandInvocations(java.util.List<IDeviceCommandInvocation> deviceCommandInvocations)
public java.util.List<IDeviceCommandResponse> getDeviceCommandResponses()
ISiteWhereContextIDeviceCommandResponse events.getDeviceCommandResponses in interface ISiteWhereContextpublic void setDeviceCommandResponses(java.util.List<IDeviceCommandResponse> deviceCommandResponses)
public java.lang.String getReplyTo()
ISiteWhereContextgetReplyTo in interface ISiteWhereContextpublic void setReplyTo(java.lang.String replyTo)
public void addDeviceEvent(IDeviceEvent event) throws SiteWhereException
event - SiteWhereException