ns-3
|
#include <ue-net-device.h>
Public Member Functions | |
UeNetDevice (Ptr< Node > node, Ptr< LtePhy > phy) | |
Create an UE net device. | |
UeNetDevice (Ptr< Node > node, Ptr< LtePhy > phy, Ptr< EnbNetDevice > targetEnb) | |
Create an UE net device. | |
virtual void | DoDispose () |
void | SetMacEntity (Ptr< UeMacEntity > m) |
Set the MAC entity. | |
Ptr< UeMacEntity > | GetMacEntity (void) |
Get the MAC entity. | |
void | InitUeNetDevice (void) |
Initialize the UE. | |
void | Start (void) |
This method is called as soon as the net device is created. It can be used to start some functionalities of the considered device. For example, for the eNB device it starts the schedule of LTE Frames. | |
void | Stop (void) |
void | SetTargetEnb (Ptr< EnbNetDevice > enb) |
Set the targer eNB where the UE is registered. | |
Ptr< EnbNetDevice > | GetTargetEnb (void) |
Get the targer eNB where the UE is registered. | |
void | StartTransmission (void) |
Start packet transmission. This functipon will called when a PDCCH messages is received According to the allocated resources in the uplink the UE create a packet burst and send it to the phy layer. | |
bool | SendPacket (Ptr< PacketBurst > p) |
Send packet/packets to the physical layer. | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::UeNetDevice. |
The UeNetDevice class implements the UE net device
Create an UE net device.
node | |
phy |
References InitUeNetDevice(), NS_LOG_FUNCTION, ns3::LteNetDevice::SetNode(), and ns3::LteNetDevice::SetPhy().
ns3::UeNetDevice::UeNetDevice | ( | Ptr< Node > | node, |
Ptr< LtePhy > | phy, | ||
Ptr< EnbNetDevice > | targetEnb | ||
) |
Create an UE net device.
node | |
phy | |
targetEnb | the enb where the UE is registered |
References InitUeNetDevice(), NS_LOG_FUNCTION, ns3::LteNetDevice::SetNode(), and ns3::LteNetDevice::SetPhy().
void ns3::UeNetDevice::DoDispose | ( | void | ) | [virtual] |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
It is safe to call GetObject from within this method.
Reimplemented from ns3::LteNetDevice.
References ns3::Object::Dispose(), and NS_LOG_FUNCTION.
Ptr< UeMacEntity > ns3::UeNetDevice::GetMacEntity | ( | void | ) |
Ptr< EnbNetDevice > ns3::UeNetDevice::GetTargetEnb | ( | void | ) |
Get the targer eNB where the UE is registered.
References NS_LOG_FUNCTION.
TypeId ns3::UeNetDevice::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::UeNetDevice.
This object is accessible through the following paths with Config::Set and Config::Connect:
No Attributes defined for this type.
Attributes defined in parent class ns3::LteNetDevice:
No TraceSources defined for this type.
Reimplemented from ns3::LteNetDevice.
References ns3::TypeId::SetParent().
bool ns3::UeNetDevice::SendPacket | ( | Ptr< PacketBurst > | p | ) | [virtual] |
Send packet/packets to the physical layer.
p | packet/packets to be sent |
Implements ns3::LteNetDevice.
References ns3::LteNetDevice::GetPhy(), ns3::LtePhy::GetUplinkSpectrumPhy(), and ns3::LteSpectrumPhy::StartTx().
void ns3::UeNetDevice::SetMacEntity | ( | Ptr< UeMacEntity > | m | ) |
void ns3::UeNetDevice::SetTargetEnb | ( | Ptr< EnbNetDevice > | enb | ) |
void ns3::UeNetDevice::Stop | ( | void | ) | [virtual] |