diff options
author | Jordan Augé <jordan.auge+fdio@email.com> | 2017-02-24 14:58:01 +0100 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2017-02-24 18:36:29 +0000 |
commit | 85a341d645b57b7cd88a26ed2ea0a314704240ea (patch) | |
tree | bdda2b35003aae20103a796f86daced160b8a730 /emu-radio/lte-emulator/src/lte-emulator.h | |
parent | 9b30fc10fb1cbebe651e5a107e8ca5b24de54675 (diff) |
Initial commit: vICN
Change-Id: I7ce66c4e84a6a1921c63442f858b49e083adc7a7
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'emu-radio/lte-emulator/src/lte-emulator.h')
-rw-r--r-- | emu-radio/lte-emulator/src/lte-emulator.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/emu-radio/lte-emulator/src/lte-emulator.h b/emu-radio/lte-emulator/src/lte-emulator.h new file mode 100644 index 00000000..a602a612 --- /dev/null +++ b/emu-radio/lte-emulator/src/lte-emulator.h @@ -0,0 +1,61 @@ +/** + * Copyright (c) 2016, Cisco Systems + * + * @author Mauro Sardara (msardara@cisco.com) + */ + +#ifndef Lte_EMULATOR_LteEMULATOR_H +#define Lte_EMULATOR_LteEMULATOR_H + +#include "../extensions/lte-tap-helper.h" +#include <unordered_map> + +#include "emulator.h" + +#define CONSTANT_POSITION "constant_position" +#define RANDOM_WAYPOINT "random_waypoint" + +//NS_LOG_COMPONENT_DEFINE ("Lte-emulator"); + +#define SSID "ns-3-ssid" + +namespace ns3 +{ +namespace emulator +{ + +class LteEmulator : public Emulator { + + public: + explicit LteEmulator (std::unordered_map <std::string, ns3::Ptr<ns3::Node>> &mapNameNode, Ptr <LteTapHelper> ltehelper); + + std::pair<double, double> getStationCoordinates (const std::string &station); + + bool setStationCoordinates (const std::string &station, double x, double y); + + bool setStationXCoordinate (const std::string &station, double x); + + bool getStationYCoordinate (const std::string &station, double *y); + + bool getStationXCoordinate (const std::string &station, double *x); + + bool setStationYCoordinate (const std::string &station, double y); + + LteEmulator & + moveStationAlongSegment (const std::string &station, double start_x, double start_y, double end_x, double end_y, double duration); + + bool getTransmissionRate (const std::string &station, double *transmissionRate); + + private: + + std::unordered_map <std::string, ns3::Ptr<ns3::Node>> m_mapNameNs3node; + + Ptr <LteTapHelper> m_lteTapHelper; + +}; + +} // End namespace emulator + +} // End namespace ns3 + +#endif //Lte_EMULATOR_LteEMULATOR_H |