This class allows higher layer control data rate and tx power level. More...
#include <wave-mac-low.h>
Public Member Functions | |
WaveMacLow (void) | |
virtual | ~WaveMacLow (void) |
Public Member Functions inherited from ns3::MacLow | |
MacLow () | |
virtual | ~MacLow () |
Time | CalculateTransmissionTime (Ptr< const Packet > packet, const WifiMacHeader *hdr, const MacLowTransmissionParameters ¶meters) const |
void | CreateBlockAckAgreement (const MgtAddBaResponseHeader *respHdr, Mac48Address originator, uint16_t startingSeq) |
void | DestroyBlockAckAgreement (Mac48Address originator, uint8_t tid) |
Time | GetAckTimeout (void) const |
Return ACK timeout of this MacLow. More... | |
Mac48Address | GetAddress (void) const |
Return the MAC address of this MacLow. More... | |
Time | GetBasicBlockAckTimeout () const |
Return Basic Block ACK timeout of this MacLow. More... | |
Mac48Address | GetBssid (void) const |
Return the Basic Service Set Identification. More... | |
Time | GetCompressedBlockAckTimeout () const |
Return Compressed Block ACK timeout of this MacLow. More... | |
Time | GetCtsTimeout (void) const |
Return CTS timeout of this MacLow. More... | |
bool | GetCtsToSelfSupported () const |
Return whether CTS-to-self capability is supported. More... | |
Time | GetPifs (void) const |
Return PCF Interframe Space (PIFS) of this MacLow. More... | |
Time | GetRifs (void) const |
Return Reduced Interframe Space (RIFS) of this MacLow. More... | |
Time | GetSifs (void) const |
Return Short Interframe Space (SIFS) of this MacLow. More... | |
Time | GetSlotTime (void) const |
Return slot duration of this MacLow. More... | |
bool | IsPromisc (void) const |
Check if MacLow is operating in promiscuous mode. More... | |
void | NotifySwitchingStartNow (Time duration) |
void | ReceiveError (Ptr< const Packet > packet, double rxSnr) |
void | ReceiveOk (Ptr< Packet > packet, double rxSnr, WifiMode txMode, WifiPreamble preamble) |
void | RegisterBlockAckListenerForAc (enum AcIndex ac, MacLowBlockAckEventListener *listener) |
void | RegisterDcfListener (MacLowDcfListener *listener) |
void | SetAckTimeout (Time ackTimeout) |
Set ACK timeout of this MacLow. More... | |
void | SetAddress (Mac48Address ad) |
Set MAC address of this MacLow. More... | |
void | SetBasicBlockAckTimeout (Time blockAckTimeout) |
Set Basic Block ACK timeout of this MacLow. More... | |
void | SetBssid (Mac48Address ad) |
Set the Basic Service Set Identification. More... | |
void | SetCompressedBlockAckTimeout (Time blockAckTimeout) |
Set Compressed Block ACK timeout of this MacLow. More... | |
void | SetCtsTimeout (Time ctsTimeout) |
Set CTS timeout of this MacLow. More... | |
void | SetCtsToSelfSupported (bool enable) |
Enable or disable CTS-to-self capability. More... | |
void | SetPhy (Ptr< WifiPhy > phy) |
Set up WifiPhy associated with this MacLow. More... | |
void | SetPifs (Time pifs) |
Set PCF Interframe Space (PIFS) of this MacLow. More... | |
void | SetPromisc (void) |
Enable promiscuous mode. More... | |
void | SetRifs (Time rifs) |
Set Reduced Interframe Space (RIFS) of this MacLow. More... | |
void | SetRxCallback (Callback< void, Ptr< Packet >, const WifiMacHeader * > callback) |
void | SetSifs (Time sifs) |
Set Short Interframe Space (SIFS) of this MacLow. More... | |
void | SetSlotTime (Time slotTime) |
Set slot duration of this MacLow. More... | |
void | SetWifiRemoteStationManager (Ptr< WifiRemoteStationManager > manager) |
Set up WifiRemoteStationManager associated with this MacLow. More... | |
void | StartTransmission (Ptr< const Packet > packet, const WifiMacHeader *hdr, MacLowTransmissionParameters parameters, MacLowTransmissionListener *listener) |
Public Member Functions inherited from ns3::Object | |
Object () | |
virtual | ~Object () |
void | AggregateObject (Ptr< Object > other) |
void | Dispose (void) |
Run the DoDispose methods of this object and all the objects aggregated to it. More... | |
AggregateIterator | GetAggregateIterator (void) const |
virtual TypeId | GetInstanceTypeId (void) const |
template<typename T > | |
Ptr< T > | GetObject (void) const |
template<typename T > | |
Ptr< T > | GetObject (TypeId tid) const |
void | Initialize (void) |
This method calls the virtual DoInitialize method on all the objects aggregated to this object. More... | |
Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
SimpleRefCount () | |
Constructor. More... | |
SimpleRefCount (const SimpleRefCount &o) | |
Copy constructor. More... | |
uint32_t | GetReferenceCount (void) const |
Get the reference count of the object. More... | |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
Assignment. More... | |
void | Ref (void) const |
Increment the reference count. More... | |
void | Unref (void) const |
Decrement the reference count. More... | |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Static Public Member Functions inherited from ns3::Object | |
static TypeId | GetTypeId (void) |
Register this type. More... | |
Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter > | |
static void | Cleanup (void) |
Noop. More... | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Member Functions | |
virtual WifiTxVector | GetDataTxVector (Ptr< const Packet > packet, const WifiMacHeader *hdr) const |
Return a TXVECTOR for the DATA frame given the destination. More... | |
Additional Inherited Members | |
Public Types inherited from ns3::MacLow | |
typedef Callback< void, Ptr < Packet >, const WifiMacHeader * > | MacLowRxCallback |
typedef for a callback for MacLowRx More... | |
Protected Member Functions inherited from ns3::Object | |
Object (const Object &o) | |
virtual void | DoInitialize (void) |
This method is called only once by Object::Initialize. More... | |
virtual void | NotifyNewAggregate (void) |
This method is invoked whenever two sets of objects are aggregated together. More... | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
virtual void | NotifyConstructionCompleted (void) |
This method is invoked once all member attributes have been initialized. More... | |
This class allows higher layer control data rate and tx power level.
Doxygen introspection did not find any typical Config paths.
If higher layer do not select, it will select by WifiRemoteStationManager of MAC layer; If higher layer selects tx arguments without adapter set, the data rate and tx power level will be used to send the packet. If higher layer selects tx arguments with adapter set, the data rate will be lower bound for the actual data rate, and the power level will be upper bound for the actual transmit power.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Definition at line 39 of file wave-mac-low.h.
ns3::WaveMacLow::WaveMacLow | ( | void | ) |
Definition at line 41 of file wave-mac-low.cc.
References NS_LOG_FUNCTION.
|
virtual |
Definition at line 45 of file wave-mac-low.cc.
References NS_LOG_FUNCTION.
|
privatevirtual |
Return a TXVECTOR for the DATA frame given the destination.
The function consults WifiRemoteStationManager, which controls the rate to different destinations.
packet | the packet being asked for TXVECTOR |
hdr | the WifiMacHeader |
Reimplemented from ns3::MacLow.
Definition at line 51 of file wave-mac-low.cc.
References ns3::WifiMode::GetDataRate(), ns3::HigherDataTxVectorTag::GetDataTxVector(), ns3::MacLow::GetDataTxVector(), ns3::WifiTxVector::GetMode(), ns3::WifiTxVector::GetTxPowerLevel(), ns3::HigherDataTxVectorTag::IsAdapter(), NS_LOG_FUNCTION, ns3::WifiTxVector::SetMode(), and ns3::WifiTxVector::SetTxPowerLevel().
|
static |
Definition at line 33 of file wave-mac-low.cc.
References ns3::TypeId::SetParent().