45 lines
854 B
C++
45 lines
854 B
C++
#ifndef BEACONMEASUREMENT_H
|
|
#define BEACONMEASUREMENT_H
|
|
|
|
#include "../MACAddress.h"
|
|
#include "../../data/Timestamp.h"
|
|
#include "Beacon.h"
|
|
|
|
#include <vector>
|
|
|
|
|
|
/** one observed AP and its signal strength */
|
|
class BeaconMeasurement {
|
|
|
|
private:
|
|
|
|
/** the timestamp this beacon was discovered at */
|
|
Timestamp ts;
|
|
|
|
/** the beacon's mac address */
|
|
Beacon beacon;
|
|
|
|
/** signal strength */
|
|
float rssi;
|
|
|
|
public:
|
|
|
|
/** ctor */
|
|
BeaconMeasurement(const Timestamp ts, const Beacon& beacon, const float rssi) : ts(ts), beacon(beacon), rssi(rssi) {;}
|
|
|
|
|
|
public:
|
|
|
|
/** get the beacon */
|
|
const Beacon& getBeacon() const {return beacon;}
|
|
|
|
/** get the measurements timestamp */
|
|
const Timestamp& getTimestamp() const {return ts;}
|
|
|
|
/** get the rssi */
|
|
float getRSSI() const {return rssi;}
|
|
};
|
|
|
|
|
|
#endif // BEACONMEASUREMENT_H
|