ns-3
ns3::LteEnbNetDevice Class Reference

#include <lte-enb-net-device.h>

Inheritance diagram for ns3::LteEnbNetDevice:
Collaboration diagram for ns3::LteEnbNetDevice:

List of all members.

Public Member Functions

virtual void DoDispose (void)
virtual bool Send (Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber)
Ptr< LteEnbMacGetMac (void) const
Ptr< LteEnbPhyGetPhy (void) const
Ptr< LteEnbRrcGetRrc () const
uint16_t GetCellId () const
uint8_t GetUlBandwidth () const
void SetUlBandwidth (uint8_t bw)
uint8_t GetDlBandwidth () const
void SetDlBandwidth (uint8_t bw)
uint16_t GetDlEarfcn () const
void SetDlEarfcn (uint16_t earfcn)
uint16_t GetUlEarfcn () const
void SetUlEarfcn (uint16_t earfcn)
- Public Member Functions inherited from ns3::LteNetDevice
virtual void SetIfIndex (const uint32_t index)
virtual uint32_t GetIfIndex (void) const
virtual Ptr< ChannelGetChannel (void) const
virtual bool SetMtu (const uint16_t mtu)
virtual uint16_t GetMtu (void) const
virtual void SetAddress (Address address)
virtual Address GetAddress (void) const
virtual bool IsLinkUp (void) const
virtual void AddLinkChangeCallback (Callback< void > callback)
virtual bool IsBroadcast (void) const
virtual Address GetBroadcast (void) const
virtual bool IsMulticast (void) const
virtual bool IsPointToPoint (void) const
 Return true if the net device is on a point-to-point link.
virtual bool IsBridge (void) const
 Return true if the net device is acting as a bridge.
virtual Ptr< NodeGetNode (void) const
virtual void SetNode (Ptr< Node > node)
virtual bool NeedsArp (void) const
virtual void SetReceiveCallback (NetDevice::ReceiveCallback cb)
virtual Address GetMulticast (Ipv4Address addr) const
 Make and return a MAC multicast address using the provided multicast group.
virtual Address GetMulticast (Ipv6Address addr) const
 Get the MAC multicast address corresponding to the IPv6 address provided.
virtual void SetPromiscReceiveCallback (PromiscReceiveCallback cb)
virtual bool SendFrom (Ptr< Packet > packet, const Address &source, const Address &dest, uint16_t protocolNumber)
virtual bool SupportsSendFrom (void) const
void Receive (Ptr< Packet > p)

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::LteEnbNetDevice.

Protected Member Functions

virtual void DoStart (void)

Additional Inherited Members

- Protected Attributes inherited from ns3::LteNetDevice
NetDevice::ReceiveCallback m_rxCallback

Detailed Description

The eNodeB device implementation


Member Function Documentation

void ns3::LteEnbNetDevice::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.

void ns3::LteEnbNetDevice::DoStart ( void  )
protectedvirtual

This method is called only once by Object::Start. If the user calls Object::Start multiple times, DoStart is called only the first time.

Subclasses are expected to override this method and chain up to their parent's implementation once they are done. It is safe to call GetObject and AggregateObject from within this method.

Reimplemented from ns3::Object.

References NS_ABORT_MSG_IF, and ns3::Object::Start().

uint16_t ns3::LteEnbNetDevice::GetCellId ( ) const
Returns:
the Cell Identifier of this eNB

Referenced by ns3::LteHelper::Attach(), and ns3::LteUeNetDevice::SetTargetEnb().

uint8_t ns3::LteEnbNetDevice::GetDlBandwidth ( ) const
Returns:
the downlink bandwidth in RBs

Referenced by GetTypeId().

uint16_t ns3::LteEnbNetDevice::GetDlEarfcn ( ) const
Returns:
the downlink carrier frequency (EARFCN)

Referenced by ns3::LteHelper::Attach().

Ptr< LteEnbMac > ns3::LteEnbNetDevice::GetMac ( void  ) const
Returns:
a pointer to the MAC

References NS_LOG_FUNCTION.

Ptr< LteEnbPhy > ns3::LteEnbNetDevice::GetPhy ( void  ) const
Returns:
a pointer to the physical layer.

References NS_LOG_FUNCTION.

Ptr< LteEnbRrc > ns3::LteEnbNetDevice::GetRrc ( ) const
Returns:
a pointer to the Radio Resource Control instance of the eNB
TypeId ns3::LteEnbNetDevice::GetTypeId ( void  )
static

This method returns the TypeId associated to ns3::LteEnbNetDevice.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::LteEnbNetDevice
  • /NodeList/[i]/DeviceList/[i]/$ns3::LteNetDevice/$ns3::LteEnbNetDevice

Attributes defined for this type:

Attributes defined in parent class ns3::LteNetDevice:

  • Mtu: The MAC-level Maximum Transmission Unit

No TraceSources defined for this type.

Reimplemented from ns3::LteNetDevice.

References GetDlBandwidth(), GetUlBandwidth(), SetDlBandwidth(), ns3::TypeId::SetParent(), and SetUlBandwidth().

uint8_t ns3::LteEnbNetDevice::GetUlBandwidth ( ) const
Returns:
the uplink bandwidth in RBs

Referenced by ns3::LteHelper::Attach(), and GetTypeId().

uint16_t ns3::LteEnbNetDevice::GetUlEarfcn ( ) const
Returns:
the uplink carrier frequency (EARFCN)
bool ns3::LteEnbNetDevice::Send ( Ptr< Packet packet,
const Address dest,
uint16_t  protocolNumber 
)
virtual
Parameters:
packetpacket sent from above down to Network Device
destmac address of the destination (already resolved)
protocolNumberidentifies the type of payload contained in this packet. Used to call the right L3Protocol when the packet is received.

Called from higher layer to send packet into Network Device to the specified destination Address

Returns:
whether the Send operation succeeded

Implements ns3::NetDevice.

References NS_ASSERT_MSG, NS_LOG_FUNCTION, and ns3::LteEnbRrc::Send().

void ns3::LteEnbNetDevice::SetDlBandwidth ( uint8_t  bw)
Parameters:
bwthe downlink bandwidth in RBs

References NS_FATAL_ERROR.

Referenced by GetTypeId().

void ns3::LteEnbNetDevice::SetDlEarfcn ( uint16_t  earfcn)
Parameters:
bwthe downlink carrier frequency (EARFCN)
void ns3::LteEnbNetDevice::SetUlBandwidth ( uint8_t  bw)
Parameters:
bwthe uplink bandwidth in RBs

References NS_FATAL_ERROR.

Referenced by GetTypeId().

void ns3::LteEnbNetDevice::SetUlEarfcn ( uint16_t  earfcn)
Parameters:
bwthe uplink carrier frequency (EARFCN)

The documentation for this class was generated from the following files: