Public Member Functions

ns3::UanMac Class Reference

Virtual base class for all UAN MAC protocols. More...

#include <uan-mac.h>

Inheritance diagram for ns3::UanMac:
Inheritance graph
[legend]
Collaboration diagram for ns3::UanMac:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual Address GetAddress (void)=0
virtual void SetAddress (UanAddress addr)=0
virtual bool Enqueue (Ptr< Packet > pkt, const Address &dest, uint16_t protocolNumber)=0
virtual void SetForwardUpCb (Callback< void, Ptr< Packet >, const UanAddress & > cb)=0
virtual void AttachPhy (Ptr< UanPhy > phy)=0
virtual Address GetBroadcast (void) const =0
virtual void Clear (void)=0

Detailed Description

Virtual base class for all UAN MAC protocols.


Member Function Documentation

virtual void ns3::UanMac::AttachPhy ( Ptr< UanPhy phy  )  [pure virtual]

Attach PHY layer to this MAC. Some MACs may be designed to work with multiple PHY layers. Others may only work with one.

Parameters:
phy Phy layer to attach to this MAC

Implemented in ns3::UanMacAloha, ns3::UanMacRcGw, and ns3::UanMacRc.

virtual void ns3::UanMac::Clear ( void   )  [pure virtual]

Clears all pointer references

Implemented in ns3::UanMacAloha, ns3::UanMacRcGw, and ns3::UanMacRc.

virtual bool ns3::UanMac::Enqueue ( Ptr< Packet pkt,
const Address dest,
uint16_t  protocolNumber 
) [pure virtual]

Enqueue packet to be transmitted

Parameters:
pkt Packet to be transmitted
dest Destination address
protocolNumber Protocol #. Usage varies by MAC

Implemented in ns3::UanMacAloha, ns3::UanMacRcGw, and ns3::UanMacRc.

virtual Address ns3::UanMac::GetAddress ( void   )  [pure virtual]
Returns:
MAC Address

Implemented in ns3::UanMacAloha, ns3::UanMacRcGw, and ns3::UanMacRc.

virtual Address ns3::UanMac::GetBroadcast ( void   )  const [pure virtual]
Returns:
Broadcast address

Implemented in ns3::UanMacAloha, ns3::UanMacRcGw, and ns3::UanMacRc.

virtual void ns3::UanMac::SetAddress ( UanAddress  addr  )  [pure virtual]
Parameters:
addr UanAddress for this MAC

Implemented in ns3::UanMacAloha, ns3::UanMacRcGw, and ns3::UanMacRc.

virtual void ns3::UanMac::SetForwardUpCb ( Callback< void, Ptr< Packet >, const UanAddress & >  cb  )  [pure virtual]
Parameters:
cb Callback to be called when a packet is forwarded up to higher layer

Implemented in ns3::UanMacAloha, ns3::UanMacRcGw, and ns3::UanMacRc.


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