58 lines
1.2 KiB
C++
58 lines
1.2 KiB
C++
/*
|
||
* © Copyright 2014 – Urheberrechtshinweis
|
||
* Alle Rechte vorbehalten / All Rights Reserved
|
||
*
|
||
* Programmcode ist urheberrechtlich geschuetzt.
|
||
* Das Urheberrecht liegt, soweit nicht ausdruecklich anders gekennzeichnet, bei Frank Ebner.
|
||
* Keine Verwendung ohne explizite Genehmigung.
|
||
* (vgl. § 106 ff UrhG / § 97 UrhG)
|
||
*/
|
||
|
||
#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;}
|
||
|
||
/** set another signal strength */
|
||
void setRssi(float value){rssi = value;}
|
||
};
|
||
|
||
|
||
#endif // BEACONMEASUREMENT_H
|