21 #ifndef LTE_TEST_ENTITIES_H
22 #define LTE_TEST_ENTITIES_H
24 #include "ns3/simulator.h"
27 #include "ns3/lte-mac-sap.h"
28 #include "ns3/lte-rlc-sap.h"
29 #include "ns3/lte-pdcp-sap.h"
31 #include "ns3/net-device.h"
32 #include <ns3/epc-enb-s1-sap.h>
49 static TypeId GetTypeId (
void);
52 virtual ~LteTestRrc (
void);
70 void SendData (
Time at, std::string dataToSend);
71 std::string GetDataReceived (
void);
74 uint32_t GetTxPdus (
void);
75 uint32_t GetTxBytes (
void);
76 uint32_t GetRxPdus (
void);
77 uint32_t GetRxBytes (
void);
79 Time GetTxLastTime (
void);
80 Time GetRxLastTime (
void);
82 void SetArrivalTime (
Time arrivalTime);
83 void SetPduSize (uint32_t pduSize);
92 std::string m_receivedData;
116 static TypeId GetTypeId (
void);
119 virtual ~LteTestPdcp (
void);
136 void SendData (
Time time, std::string dataToSend);
137 std::string GetDataReceived (
void);
146 std::string m_receivedData;
163 static TypeId GetTypeId (
void);
166 virtual ~LteTestMac (
void);
171 void SendTxOpportunity (
Time, uint32_t);
172 std::string GetDataReceived (
void);
196 void SetPdcpHeaderPresent (
bool present);
201 void SetRlcHeaderType (uint8_t rlcHeaderType);
211 void SetTxOpportunityMode (uint8_t mode);
217 } TxOpportunityMode_t;
219 void SetTxOppTime (
Time txOppTime);
220 void SetTxOppSize (uint32_t txOppSize);
223 uint32_t GetTxPdus (
void);
224 uint32_t GetTxBytes (
void);
225 uint32_t GetRxPdus (
void);
226 uint32_t GetRxBytes (
void);
237 std::string m_receivedData;
239 uint8_t m_rlcHeaderType;
240 bool m_pdcpHeaderPresent;
241 uint8_t m_txOpportunityMode;
248 uint32_t m_txOppSize;
270 virtual ~EpcTestRrc ();
274 static TypeId GetTypeId (
void);
virtual void DoDispose(void)
virtual void DoDispose(void)
void SetLteMacLoopback(Ptr< LteTestMac > s)
Set the other side of the MAC Loopback.
virtual void DoReceivePdcpSdu(LtePdcpSapUser::ReceivePdcpSduParameters params)
a polymophic address class
void SetLteMacSapUser(LteMacSapUser *s)
Set the MAC SAP user.
LtePdcpSapUser * GetLtePdcpSapUser(void)
Get the PDCP SAP user.
void SetLteRlcSapProvider(LteRlcSapProvider *s)
Set the RLC SAP provider.
void SetS1SapProvider(EpcEnbS1SapProvider *s)
EpcEnbS1SapUser * GetS1SapUser()
LteMacSapProvider * GetLteMacSapProvider(void)
Get the MAC SAP provider.
virtual void DoDispose(void)
virtual void DoDispose(void)
an identifier for simulation events.
void DoTransmitPdu(LteMacSapProvider::TransmitPduParameters)
a base class which provides memory management and object aggregation
a unique identifier for an interface.
virtual void DoReceivePdcpPdu(Ptr< Packet > p)
void SetLtePdcpSapProvider(LtePdcpSapProvider *s)
Set the PDCP SAP provider.
LteRlcSapUser * GetLteRlcSapUser(void)
Get the RLC SAP user.