ns-3
ns3::MacEntity Class Reference

#include <mac-entity.h>

Inheritance diagram for ns3::MacEntity:
Collaboration diagram for ns3::MacEntity:

List of all members.

Public Member Functions

virtual void DoDispose (void)
void SetDevice (Ptr< LteNetDevice > d)
 Set the device where the mac entity is attached.
Ptr< LteNetDeviceGetDevice ()
 Get the device where the mac entity is attached.
void SetAmcModule (Ptr< AmcModule > amcModule)
 Set the AMC module.
Ptr< AmcModuleGetAmcModule (void) const
 Get the AMC module.

Static Public Member Functions

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

Detailed Description

This class provides a basi implementation of the MAC layer


Member Function Documentation

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

Reimplemented in ns3::EnbMacEntity.

Get the AMC module.

Returns:
a pointer to the AMC Module.

References NS_LOG_FUNCTION.

Referenced by ns3::UeMacEntity::CreateCqiFeedbacks().

TypeId ns3::MacEntity::GetTypeId ( void  ) [static]

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

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

  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::MacEntity
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::MacEntity

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::Object.

Reimplemented in ns3::EnbMacEntity, and ns3::UeMacEntity.

References ns3::TypeId::SetParent().

void ns3::MacEntity::SetAmcModule ( Ptr< AmcModule amcModule)

Set the AMC module.

Parameters:
amcModulethe AMC Module.

References NS_LOG_FUNCTION.

Set the device where the mac entity is attached.

Parameters:
dthe device

References NS_LOG_FUNCTION.

Referenced by ns3::EnbNetDevice::InitEnbNetDevice(), and ns3::UeNetDevice::InitUeNetDevice().


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