NS-3
|
#include <mac-entity.h>
Public Member Functions | |
virtual void | DoDispose (void) |
void | SetDevice (Ptr< LteNetDevice > d) |
Set the device where the mac entity is attached. | |
Ptr< LteNetDevice > | GetDevice () |
Get the device where the mac entity is attached. | |
void | SetAmcModule (Ptr< AmcModule > amcModule) |
Set the AMC module. | |
Ptr< AmcModule > | GetAmcModule (void) const |
Get the AMC module. | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::MacEntity. |
This class provides a basi implementation of the MAC layer
virtual 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.
Ptr<LteNetDevice> ns3::MacEntity::GetDevice | ( | ) |
Get the device where the mac entity is attached.
static 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:
No Attributes defined for this type.
No TraceSources defined for this type.
Reimplemented from ns3::Object.
Reimplemented in ns3::EnbMacEntity, and ns3::UeMacEntity.
Set the AMC module.
amcModule | the AMC Module. |
void ns3::MacEntity::SetDevice | ( | Ptr< LteNetDevice > | d | ) |
Set the device where the mac entity is attached.
d | the device |