33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
#ifndef _REFERENCEPOINT_HH_
|
|
#define _REFERENCEPOINT_HH_
|
|
|
|
#include <iostream>
|
|
#include <vector>
|
|
#include "point.hh"
|
|
#include "measurement.hh"
|
|
|
|
using namespace std;
|
|
|
|
class ReferencePoint
|
|
{
|
|
protected:
|
|
Point coordinates;
|
|
vector<Measurement> measurement_list;
|
|
|
|
public:
|
|
ReferencePoint(float x = 0, float y = 0, float z = 0) { coordinates.setX(x); coordinates.setY(y); coordinates.setZ(z); };
|
|
ReferencePoint(const ReferencePoint &rp) { coordinates = rp.coordinates; measurement_list = rp.measurement_list; };
|
|
ReferencePoint(Point c) { coordinates = c; };
|
|
~ReferencePoint() { measurement_list.clear(); };
|
|
float getSsSquareDistance(vector<Measurement> m)const;
|
|
Point getCoordinates()const { return coordinates; };
|
|
void addMeasurement(string mac_a, int value);
|
|
void setCoordinates(Point p) { coordinates = p; };
|
|
ReferencePoint operator=(const ReferencePoint &rp);
|
|
friend ostream &operator<<(ostream &os, ReferencePoint &rp);
|
|
vector<Measurement> getMeasurementList()const { return measurement_list; };
|
|
bool getPowerForAp(string ap_mac, float * p)const;
|
|
};
|
|
|
|
#endif
|