public class DeviceLocation extends Resource
Resource.ChangeListenerType| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_NAME |
RESPONSE_TIMEOUT, ROOT_RESOURCE_NAME| Constructor and Description |
|---|
DeviceLocation() |
| Modifier and Type | Method and Description |
|---|---|
double |
getAccuracy() |
double |
getElevation() |
double |
getLatitude() |
double |
getLongitude() |
Date |
getMeasuredDateTime() |
com.google.gson.JsonObject |
toJsonObject()
Return the
JsonObject representation of the DeviceLocation object. |
String |
toString()
Return the JSON string of the
DeviceLocation object. |
int |
update(com.google.gson.JsonElement fromLocation)
Updates each of the resources with the new value
|
int |
update(com.google.gson.JsonElement fromLocation,
boolean fireEvent)
Updates each of the resources with the new value
|
add, addPropertyChangeListener, addPropertyChangeListener, fireEvent, fireEvent, getCanonicalName, getChild, getChildren, getParent, getRC, getResourceName, getResponseRequired, getValue, notifyExternalListeners, remove, remove, removePropertyChangeListener, setParent, setRC, setValue, setValue, waitForResponsepublic static final String RESOURCE_NAME
public double getLatitude()
public double getLongitude()
public double getElevation()
public Date getMeasuredDateTime()
public double getAccuracy()
public String toString()
DeviceLocation object.public int update(com.google.gson.JsonElement fromLocation)
public int update(com.google.gson.JsonElement fromLocation,
boolean fireEvent)
public com.google.gson.JsonObject toJsonObject()
JsonObject representation of the DeviceLocation object.toJsonObject in class ResourceCopyright © 2019. All rights reserved.