| Modifier and Type | Field and Description |
|---|---|
protected Location |
location |
static int |
TYPE_BEACON |
static int |
TYPE_GEOFENCE |
static int |
TYPE_WIFI |
properties| Constructor and Description |
|---|
Signal(org.json.JSONObject info,
java.lang.String urn) |
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<Attachment> |
getAttachments(java.lang.String type)
If resolved returns the set of attachments that match the type specifier.
|
org.json.JSONObject |
getAttributes()
If resolved, returns the custom attributes associated with this signal.
|
int |
getError()
Get any error associated with this signal, or 0 if no error.
|
java.lang.String[] |
getLabels()
If resolved, returns the custom labels associated with this signal.
|
abstract long |
getLastDetected()
Get the detected timestamp for this signal or return 0, overridden by each signal type
|
Location |
getLocation()
Get the logical Location associated with this signal in the platform
|
abstract double |
getRange()
Get the approximate range to the singal source in meters.
|
abstract int |
getType()
Get the type of signal
|
java.lang.String |
getURN()
Get the URN identifier for this signal
|
void |
setError(int ecode)
Set the error for this signal or 0 to clear any error condition.
|
public static final int TYPE_BEACON
public static final int TYPE_WIFI
public static final int TYPE_GEOFENCE
protected Location location
public java.lang.String getURN()
public abstract int getType()
public abstract double getRange()
public abstract long getLastDetected()
public int getError()
public void setError(int ecode)
public Location getLocation()
Locationpublic org.json.JSONObject getAttributes()
public java.lang.String[] getLabels()
public java.util.ArrayList<Attachment> getAttachments(java.lang.String type)