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