initial commit before ownership transfer
This commit is contained in:
44
code/frank/WiFiAP.h
Executable file
44
code/frank/WiFiAP.h
Executable file
@@ -0,0 +1,44 @@
|
||||
#ifndef WIFIAP_H
|
||||
#define WIFIAP_H
|
||||
|
||||
#include "MACAddress.h"
|
||||
#include <ostream>
|
||||
|
||||
|
||||
/**
|
||||
* represents a WiFi-AccessPoint
|
||||
* an AP is represented by its MAC-Address and
|
||||
* may provide a readably SSID
|
||||
*/
|
||||
class WiFiAP {
|
||||
|
||||
public:
|
||||
|
||||
/** the AP's MAC-Address */
|
||||
MACAddress mac;
|
||||
|
||||
/** the AP's readable SSID */
|
||||
std::string ssid;
|
||||
|
||||
double tx;
|
||||
|
||||
/** path loss for this ap. for testing */
|
||||
double pl;
|
||||
|
||||
|
||||
|
||||
public:
|
||||
|
||||
/** ctor */
|
||||
WiFiAP(const MACAddress& mac, const std::string& ssid, const double tx, const double pl) : mac(mac), ssid(ssid), tx(tx), pl(pl) {
|
||||
;
|
||||
}
|
||||
|
||||
/** ctor */
|
||||
WiFiAP(const std::string& mac, const std::string& ssid, const double tx, const double pl) : mac(mac), ssid(ssid), tx(tx), pl(pl) {
|
||||
;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // WIFIAP_H
|
||||
Reference in New Issue
Block a user