ns-3
|
#include <lte-enb-net-device.h>
Public Member Functions | |
virtual void | DoDispose (void) |
virtual bool | Send (Ptr< Packet > packet, const Address &dest, uint16_t protocolNumber) |
Ptr< LteEnbMac > | GetMac (void) const |
Ptr< LteEnbPhy > | GetPhy (void) const |
Ptr< LteEnbRrc > | GetRrc () 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) |
![]() | |
virtual void | SetIfIndex (const uint32_t index) |
virtual uint32_t | GetIfIndex (void) const |
virtual Ptr< Channel > | GetChannel (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< Node > | GetNode (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 | |
![]() | |
NetDevice::ReceiveCallback | m_rxCallback |
The eNodeB device implementation
|
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.
|
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 |
Referenced by ns3::LteHelper::Attach(), and ns3::LteUeNetDevice::SetTargetEnb().
uint8_t ns3::LteEnbNetDevice::GetDlBandwidth | ( | ) | const |
Referenced by GetTypeId().
uint16_t ns3::LteEnbNetDevice::GetDlEarfcn | ( | ) | const |
Referenced by ns3::LteHelper::Attach().
References NS_LOG_FUNCTION.
References NS_LOG_FUNCTION.
|
static |
This method returns the TypeId associated to ns3::LteEnbNetDevice.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
Attributes defined in parent class ns3::LteNetDevice:
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 |
Referenced by ns3::LteHelper::Attach(), and GetTypeId().
uint16_t ns3::LteEnbNetDevice::GetUlEarfcn | ( | ) | const |
|
virtual |
packet | packet sent from above down to Network Device |
dest | mac address of the destination (already resolved) |
protocolNumber | identifies 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
Implements ns3::NetDevice.
References NS_ASSERT_MSG, NS_LOG_FUNCTION, and ns3::LteEnbRrc::Send().
void ns3::LteEnbNetDevice::SetDlBandwidth | ( | uint8_t | bw | ) |
void ns3::LteEnbNetDevice::SetDlEarfcn | ( | uint16_t | earfcn | ) |
bw | the downlink carrier frequency (EARFCN) |
void ns3::LteEnbNetDevice::SetUlBandwidth | ( | uint8_t | bw | ) |
void ns3::LteEnbNetDevice::SetUlEarfcn | ( | uint16_t | earfcn | ) |
bw | the uplink carrier frequency (EARFCN) |