add mocked leo channel and device

This commit is contained in:
Tim Schubert 2020-06-24 20:01:02 +02:00
parent 45228b292e
commit aa4e5b5ef0
5 changed files with 179 additions and 32 deletions

View file

@ -0,0 +1,41 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
#ifndef LEO_MOCK_NET_DEVICE_H_
#define LEO_MOCK_NET_DEVICE_H_
#include "mock-net-device.h"
namespace ns3
{
/**
* \brief A mocked satellite-ground link communication device with a type
*/
class LeoMockNetDevice : public MockNetDevice
{
public:
enum DeviceType
{
GW,
UT,
SAT_UT,
SAT_GW
};
static TypeId GetTypeId (void);
LeoMockNetDevice ();
virtual ~LeoMockNetDevice ()
{
}
DeviceType GetDeviceType () const;
void SetDeviceType (DeviceType deviceType);
private:
DeviceType m_deviceType;
};
};
#endif /* LEO_MOCK_NET_DEVICE_H_ */