24 #include "ns3/address.h" 25 #include "ns3/object.h" 26 #include "ns3/packet.h" 28 #include "ns3/address.h" 29 #include "ns3/nstime.h" 31 #include "ns3/mac8-address.h" 110 virtual void Clear (
void) = 0;
static TypeId GetTypeId(void)
Register this type.
virtual void SetAddress(Mac8Address addr)
Set the address.
virtual int64_t AssignStreams(int64_t stream)=0
Assign a fixed random variable stream number to the random variables used by this model...
a polymophic address class
void(* PacketModeTracedCallback)(Ptr< const Packet > packet, UanTxMode mode)
TracedCallback signature for packet reception/enqueue/dequeue events.
Virtual base class for all UAN MAC protocols.
virtual Address GetAddress(void)
Get the MAC Address.
void SetTxModeIndex(uint32_t txModeIndex)
Abstraction of packet modulation information.
A class used for addressing MAC8 MAC's.
Mac8Address m_address
The MAC address.
virtual bool Enqueue(Ptr< Packet > pkt, uint16_t protocolNumber, const Address &dest)=0
Enqueue packet to be transmitted.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t m_txModeIndex
Modulation type.
uint32_t GetTxModeIndex()
virtual void SetForwardUpCb(Callback< void, Ptr< Packet >, uint16_t, const Mac8Address &> cb)=0
Set the callback to forward packets up to higher layers.
virtual Address GetBroadcast(void) const
Get the broadcast address.
virtual void Clear(void)=0
Clears all pointer references.
A base class which provides memory management and object aggregation.
virtual void AttachPhy(Ptr< UanPhy > phy)=0
Attach PHY layer to this MAC.
UanMac()
Default constructor.
a unique identifier for an interface.