owlps/owlps-positioning/src/multilaterationmethod.hh

27 lines
690 B
C++
Raw Normal View History

#ifndef _OWLPS_POSITIONING_MULTILATERATIONMETHOD_HH_
#define _OWLPS_POSITIONING_MULTILATERATIONMETHOD_HH_
class AccessPoint ;
#include "point3d.hh"
#include <boost/tr1/unordered_map.hpp>
/// Super-class of all multilateration methods
/**
* The source data is a list of access points associated with the
* distances to the mobile. These distances are estimated using a
* MultilaterationAlgorithm.
*/
class MultilaterationMethod
{
public:
MultilaterationMethod(void) {}
virtual ~MultilaterationMethod(void) {}
virtual Point3D multilaterate(
const std::tr1::unordered_map<AccessPoint*, float> &ap_distances) = 0 ;
} ;
#endif // _OWLPS_POSITIONING_MULTILATERATIONMETHOD_HH_