mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 18:13:57 +02:00
add mocked leo channel and device
This commit is contained in:
parent
45228b292e
commit
aa4e5b5ef0
5 changed files with 179 additions and 32 deletions
41
model/leo-mock-net-device.h
Normal file
41
model/leo-mock-net-device.h
Normal 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_ */
|
Loading…
Add table
Add a link
Reference in a new issue