|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
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>
Parameters for LteMacSapProvider::TransmitPdu.
void DoInitialContextSetupRequest(EpcEnbS1SapUser::InitialContextSetupRequestParameters params)
Initial context setup request.
a unique identifier for an interface.
virtual void DoDispose(void)
Destructor implementation.
RlcHeaderType_t
RCL Header Type enumeration.
uint32_t m_pduSize
PDU size.
bool m_pdcpHeaderPresent
PDCP header present?
void SetLteMacSapUser(LteMacSapUser *s)
Set the MAC SAP user.
uint32_t GetRxPdus(void)
Get the receive PDUs.
void SetTxOppTime(Time txOppTime)
Set transmit opportunity time.
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
LtePdcpSapProvider * m_pdcpSapProvider
PDCP SAP provider.
std::string m_receivedData
the received data string
EventId m_nextTxOpp
next transmit opportunity event
bool Receive(Ptr< NetDevice > nd, Ptr< const Packet > p, uint16_t protocol, const Address &addr)
the Receive function
Time m_arrivalTime
next arrival time
uint32_t m_rxBytes
number of receive bytes
LteMacSapUser * m_macSapUser
MAC SAP user.
An identifier for simulation events.
uint32_t GetTxPdus(void)
Get the transmit PDUs.
Parameters passed to InitialContextSetupRequest ()
void SetS1SapProvider(EpcEnbS1SapProvider *s)
Set the S1 SAP Provider.
EnbMacMemberLteMacSapProvider class.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::list< EventId > m_nextTxOppList
next transmit opportunity list
void Start()
Start function.
TxOpportunityMode_t
Transmit opportunity mode enumeration.
LtePdcpSpecificLtePdcpSapUser class.
Parameters passed to DataRadioBearerSetupRequest ()
LteMacSapProvider * m_macSapProvider
MAC SAP provider.
virtual ~LteTestRrc(void)
Template for the implementation of the EpcEnbS1SapUser as a member of an owner class of type C to whi...
Ptr< NetDevice > m_device
the device
std::string m_receivedData
the received data
void SetArrivalTime(Time arrivalTime)
Set the arrival time.
Service Access Point (SAP) offered by the UM-RLC and AM-RLC entities to the PDCP entity See 3GPP 36....
void SetTxOpportunityMode(uint8_t mode)
Set transmit opportunity mode.
virtual ~LteTestPdcp(void)
RRC stub providing a testing S1 SAP user to be used with the EpcEnbApplication.
This class implements a testing PDCP entity.
uint32_t m_txBytes
the number of transmit bytes
uint8_t m_rlcHeaderType
RLC header type.
void SetDevice(Ptr< NetDevice > device)
Set the device.
Parameters for LtePdcpSapUser::ReceivePdcpSdu.
void SendData(Time time, std::string dataToSend)
Send data function.
uint32_t GetRxBytes(void)
Get the receive bytes.
LteRlcSapUser * m_rlcSapUser
RLC SAP user.
void SetLteMacLoopback(Ptr< LteTestMac > s)
Set the other side of the MAC Loopback.
This class implements the Service Access Point (SAP) between the LteEnbRrc and the EpcEnbApplication.
LteRlcSpecificLteRlcSapUser class.
uint8_t m_txOpportunityMode
transmit opportunity mode
This class implements a testing loopback MAC layer.
virtual ~LteTestMac(void)
uint32_t m_rxPdus
the number of receive PDUs
void SetDevice(Ptr< NetDevice > device)
Set the device function.
uint32_t m_rxBytes
the number of receive bytes
uint32_t m_txPdus
number of transmit PDUs
uint32_t GetRxBytes(void)
Get the receive bytes.
Parameters for LteMacSapProvider::ReportBufferStatus.
virtual void DoReceivePdcpPdu(Ptr< Packet > p)
Interface forwarded by LteRlcSapUser.
a polymophic address class
void SetPdcpHeaderPresent(bool present)
Set PDCP header present function.
A base class which provides memory management and object aggregation.
LteMacSapProvider * GetLteMacSapProvider(void)
Get the MAC SAP provider.
Ptr< NetDevice > m_device
the device
void DoTransmitPdu(LteMacSapProvider::TransmitPduParameters params)
Transmit PDU.
std::string GetDataReceived(void)
Get data received function.
This class implements the Service Access Point (SAP) between the LteEnbRrc and the EpcEnbApplication.
void SetRlcHeaderType(uint8_t rlcHeaderType)
Set RLC header type.
Simulation virtual time values and global simulation resolution.
Time m_txOppTime
transmit opportunity time
Time m_txLastTime
last transmit time
void DoPathSwitchRequestAcknowledge(EpcEnbS1SapUser::PathSwitchRequestAcknowledgeParameters params)
Path switch request acknowledge function.
PathSwitchRequestAcknowledgeParameters structure.
virtual void DoDispose(void)
Destructor implementation.
void Stop()
Stop function.
LteRlcSapProvider * m_rlcSapProvider
RLC SAP provider.
void Start()
Start function.
uint32_t m_txBytes
number of transmit bytes
Service Access Point (SAP) offered by the PDCP entity to the RRC entity See 3GPP 36....
static TypeId GetTypeId(void)
Get the type ID.
void DoReportBufferStatus(LteMacSapProvider::ReportBufferStatusParameters params)
Report buffer status function.
void SendTxOpportunity(Time time, uint32_t bytes)
Send transmit opportunity function.
uint32_t GetTxPdus(void)
Get the transmit PDUs.
LtePdcpSapUser * m_pdcpSapUser
PDCP SAP user.
Service Access Point (SAP) offered by the MAC to the RLC See Femto Forum MAC Scheduler Interface Spec...
Ptr< LteTestMac > m_macLoopback
MAC loopback.
LteRlcSapUser * GetLteRlcSapUser(void)
Get the RLC SAP user.
uint32_t GetTxBytes(void)
Get the transmit bytes.
virtual void DoDispose(void)
Destructor implementation.
virtual void DoReceivePdcpSdu(LtePdcpSapUser::ReceivePdcpSduParameters params)
Interface forwarded by LtePdcpSapUser.
static TypeId GetTypeId(void)
Get the type ID.
EpcEnbS1SapUser * m_s1SapUser
S1 SAP user.
void SetLtePdcpSapProvider(LtePdcpSapProvider *s)
Set the PDCP SAP provider.
This class implements a testing RRC entity.
void SetPduSize(uint32_t pduSize)
Set the PDU size.
uint32_t m_rxPdus
number of receive PDUs
uint32_t GetTxBytes(void)
Get the transmit bytes.
EpcEnbS1SapUser * GetS1SapUser()
void SendData(Time at, std::string dataToSend)
Send data function.
static TypeId GetTypeId(void)
Get the type ID.
LtePdcpSapUser * GetLtePdcpSapUser(void)
Get the PDCP SAP user.
std::string GetDataReceived(void)
Get data received function.
Time GetRxLastTime(void)
Get the last receive time.
uint32_t m_txPdus
the number of transmit PDUs
uint32_t GetRxPdus(void)
Get the receive PDUs.
Time GetTxLastTime(void)
Get the last transmit time.
void DoDataRadioBearerSetupRequest(EpcEnbS1SapUser::DataRadioBearerSetupRequestParameters params)
Data radio bearer setup request.
EpcEnbS1SapProvider * m_s1SapProvider
S1 SAP provider.
std::string GetDataReceived(void)
Get data received function.
void SetTxOppSize(uint32_t txOppSize)
Set transmit opportunity time.
Time m_rxLastTime
last reeive time
void SetLteRlcSapProvider(LteRlcSapProvider *s)
Set the RLC SAP provider.
Service Access Point (SAP) offered by the PDCP entity to the RRC entity See 3GPP 36....
std::string m_receivedData
the received data
static TypeId GetTypeId(void)
Get the type ID.
EventId m_nextPdu
next PDU event
virtual void DoDispose(void)
Destructor implementation.
uint32_t m_txOppSize
transmit opportunity size
Service Access Point (SAP) offered by the UM-RLC and AM-RLC entities to the PDCP entity See 3GPP 36....