Beacon.BeaconStatus
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE
String containing the Asset type
|
STATUS_LOST, STATUS_LOW_BATTERY, STATUS_NEEDS_MAINTENANCE, STATUS_NO_BATTERY, STATUS_OK, STATUS_OUT_OF_ORDER
Modifier and Type | Method and Description |
---|---|
int |
getAccuracy()
Getter for the Asset accuracy.
|
java.lang.String |
getAccuracyTime()
Getter for the Asset accuracy time.
|
java.lang.String |
getDescription()
Getter for the Asset description.
|
java.lang.String |
getName()
Getter for the Asset name.
|
java.lang.String |
getPlace()
Getter for the Asset place.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Getter for the Asset properties.
|
java.lang.String |
getTimestamp()
Deprecated.
Use
getAccuracyTime() instead. |
void |
setAccuracy(int accuracy)
Setter for the Asset accuracy.
|
void |
setDescription(java.lang.String description)
Setter for the Asset description.
|
void |
setName(java.lang.String name)
Setter for the Asset name.
|
void |
setPlace(java.lang.String place)
Setter for the Asset place.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Setter for the Asset properties.
|
void |
update(double latitude,
double longitude,
int accuracy)
This method updates the location and accuracy of the asset internally.
|
void |
updatePosition(double x,
double y,
int accuracy)
Deprecated.
Use
update(double, double, int) instead. |
bytesToHex, compareTo, computeAccuracy, detect, equals, getBuilding, getFloor, getFloorNumber, getId, getIdentifier, getLatitude, getLongitude, getMajor, getMinor, getScanDate, getStatus, getTxPower, getType, getUuid, getX, getY, hashCode, setBuilding, setFloor, setFloorNumber, setId, setLatitude, setLongitude, setMajor, setMinor, setScanDate, setStatus, setTxPower, setType, setUuid, setX, setY
public static final java.lang.String TYPE
public Asset(Beacon beacon)
@Deprecated public void updatePosition(double x, double y, int accuracy)
update(double, double, int)
instead.x
- WGS84 Longitudey
- WGS84 Latitudeaccuracy
- Accuracy in meterspublic void update(double latitude, double longitude, int accuracy)
latitude
- WGS84 Latitudelongitude
- WGS84 Longitudeaccuracy
- Accuracy in meterspublic java.lang.String getAccuracyTime()
@Deprecated public java.lang.String getTimestamp()
getAccuracyTime()
instead.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The Asset description to be setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- The Asset name to be setpublic int getAccuracy()
public void setAccuracy(int accuracy)
accuracy
- The Asset accuracy to be setpublic java.lang.String getPlace()
public void setPlace(java.lang.String place)
place
- The Asset place ID to be setpublic java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties
- The Asset properties to be set