Public Member Functions | |
String | getBeaconKey () |
UUID | getBeaconUUID () |
int | getMajor () |
int | getMinor () |
String | getName () |
void | setName (String name) |
int | getId () |
void | setId (int identifier) |
boolean | getIsCampedOn () |
void | setIsCampedOn (boolean mIsCampedOn) |
int | getBias () |
void | setBias (int mBias) |
int | getLatestRSSI () |
void | addBeaconState (int state) |
boolean | isFar () |
int | getMeanRSSI () |
void | reset () |
MSBeacon (UUID uuid, int major, int minor) | |
MSBeacon (Parcel p) | |
Public Member Functions inherited from com.mobstac.beaconstac.models.ModelBase | |
ModelBase (Object...objects) | |
Additional Inherited Members | |
Static Protected Attributes inherited from com.mobstac.beaconstac.models.ModelBase | |
static final String | idString = "_id" |
static final String[] | base_columns = { idString } |
Represents a single beacon in the system.
com.mobstac.beaconstac.models.MSBeacon.MSBeacon | ( | UUID | uuid, |
int | major, | ||
int | minor | ||
) |
Constructor for MSBeacon
uuid | beacon uuid |
major | beacon major |
minor | beacon minor |
com.mobstac.beaconstac.models.MSBeacon.MSBeacon | ( | Parcel | p | ) |
Parcelable constructor
void com.mobstac.beaconstac.models.MSBeacon.addBeaconState | ( | int | state | ) |
This is used to set the current RSSI value internally.
state | Current RSSI value associated to the beacon object |
String com.mobstac.beaconstac.models.MSBeacon.getBeaconKey | ( | ) |
Returns the key associated with the beacon
UUID com.mobstac.beaconstac.models.MSBeacon.getBeaconUUID | ( | ) |
Returns the UUID of the beacon
int com.mobstac.beaconstac.models.MSBeacon.getBias | ( | ) |
getter function for mBias
int com.mobstac.beaconstac.models.MSBeacon.getId | ( | ) |
Return beacon id as stored in our backend
boolean com.mobstac.beaconstac.models.MSBeacon.getIsCampedOn | ( | ) |
Returns true if the beacon is camped on
int com.mobstac.beaconstac.models.MSBeacon.getLatestRSSI | ( | ) |
This returns the latest RSSI, Reverse strength Index as registered by the receiver from the beacon
int com.mobstac.beaconstac.models.MSBeacon.getMajor | ( | ) |
Returns the major value of the beacon
int com.mobstac.beaconstac.models.MSBeacon.getMeanRSSI | ( | ) |
Returns the mean of previous three RSSI values associated with the beacon.
int com.mobstac.beaconstac.models.MSBeacon.getMinor | ( | ) |
Returns the minor value of the beacon
String com.mobstac.beaconstac.models.MSBeacon.getName | ( | ) |
Returns the beacon name
boolean com.mobstac.beaconstac.models.MSBeacon.isFar | ( | ) |
States if the proximity of the beacon is far
void com.mobstac.beaconstac.models.MSBeacon.reset | ( | ) |
reset the values intended to be called on exit
void com.mobstac.beaconstac.models.MSBeacon.setBias | ( | int | mBias | ) |
setter function for mBias
mBias | of type int |
void com.mobstac.beaconstac.models.MSBeacon.setId | ( | int | identifier | ) |
Set beacon id Caution: Using this method improperly can cause problems.
identifier | of type int |
void com.mobstac.beaconstac.models.MSBeacon.setIsCampedOn | ( | boolean | mIsCampedOn | ) |
setter function for mIsCampedOn
mIsCampedOn | of type boolean |
void com.mobstac.beaconstac.models.MSBeacon.setName | ( | String | name | ) |
Sets the beacon name
name | of type string |