23 #include "ns3/pointer.h"
25 #include "ns3/uinteger.h"
39 .AddAttribute (
"Type",
58 .AddAttribute (
"TxQueue",
62 MakePointerChecker<WimaxMacQueue> ());
125 return m_queue->Enqueue (packet, hdrType, hdr);
131 return m_queue->Dequeue (packetType);
137 return m_queue->Dequeue (packetType, availableByte);
149 return !
m_queue->IsEmpty (packetType);
161 return "Initial Ranging";
smart pointer class similar to boost::intrusive_ptr
Ptr< const AttributeChecker > MakeEnumChecker(int v1, std::string n1, int v2, std::string n2, int v3, std::string n3, int v4, std::string n4, int v5, std::string n5, int v6, std::string n6, int v7, std::string n7, int v8, std::string n8, int v9, std::string n9, int v10, std::string n10, int v11, std::string n11, int v12, std::string n12, int v13, std::string n13, int v14, std::string n14, int v15, std::string n15, int v16, std::string n16, int v17, std::string n17, int v18, std::string n18, int v19, std::string n19, int v20, std::string n20, int v21, std::string n21, int v22, std::string n22)
enum ServiceFlow::SchedulingType GetSchedulingType(void) const
void FragmentEnqueue(Ptr< const Packet > fragment)
enqueue a received packet (that is a fragment) into the fragments queue
ServiceFlow * m_serviceFlow
NS_OBJECT_ENSURE_REGISTERED(NullMessageSimulatorImpl)
uint8_t GetSchedulingType(void) const
ServiceFlow * GetServiceFlow(void) const
#define NS_FATAL_ERROR(msg)
fatal error handling
Ptr< T > CreateObject(void)
Ptr< WimaxMacQueue > GetQueue(void) const
hold variables of type 'enum'
WimaxConnection(Cid cid, enum Cid::Type type)
const FragmentsQueue GetFragmentsQueue(void) const
get a queue of received fragments
enum Cid::Type GetType(void) const
virtual void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
bool HasPackets(void) const
void ClearFragmentsQueue(void)
delete all enqueued fragments
bool Enqueue(Ptr< Packet > packet, const MacHeaderType &hdrType, const GenericMacHeader &hdr)
enqueue a packet in the queue of the connection
hold objects of type Ptr<T>
This class implements service flows as described by the IEEE-802.16 standard.
std::list< Ptr< const Packet > > FragmentsQueue
Ptr< const AttributeAccessor > MakeEnumAccessor(T1 a1)
Ptr< Packet > Dequeue(MacHeaderType::HeaderType packetType=MacHeaderType::HEADER_TYPE_GENERIC)
dequeue a packet from the queue of the connection
void SetServiceFlow(ServiceFlow *serviceFlow)
set the service flow associated to this connection
FragmentsQueue m_fragmentsQueue
static TypeId GetTypeId(void)
std::string GetTypeStr(void) const
a base class which provides memory management and object aggregation
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Ptr< WimaxMacQueue > m_queue