22#include "ns3/pointer.h"
39 : m_cidFactory(nullptr)
122 if ((*iter)->GetCid() == cid)
130 if ((*iter)->GetCid() == cid)
138 if ((*iter)->GetCid() == cid)
147std::vector<Ptr<WimaxConnection>>
150 std::vector<Ptr<WimaxConnection>> connections;
181 nrPackets += (*iter)->GetQueue()->GetSize();
188 nrPackets += (*iter)->GetQueue()->GetSize();
197 (*iter)->GetSchedulingType() == schedulingType)
199 nrPackets += (*iter)->GetQueue()->GetSize();
217 if ((*iter)->HasPackets())
225 if ((*iter)->HasPackets())
233 if ((*iter)->HasPackets())
This class is used exclusively by the BS to allocate CIDs to new connections.
Cid Allocate(Cid::Type type)
This function returns the next CID for the specified type.
Cid AllocateTransportOrSecondary()
This function returns the next Transport (or Secondary) CID.
std::vector< Ptr< WimaxConnection > > m_primaryConnections
primary connections
std::vector< Ptr< WimaxConnection > > m_basicConnections
basic connections
~ConnectionManager() override
void DoDispose() override
Destructor implementation.
void AllocateManagementConnections(SSRecord *ssRecord, RngRsp *rngrsp)
allocates the management connection for an ss record.
std::vector< Ptr< WimaxConnection > > m_transportConnections
transport connections
Ptr< WimaxConnection > GetConnection(Cid cid)
Ptr< WimaxConnection > CreateConnection(Cid::Type type)
create a connection of type type
std::vector< Ptr< WimaxConnection > > GetConnections(Cid::Type type) const
uint32_t GetNPackets(Cid::Type type, ServiceFlow::SchedulingType schedulingType) const
get number of packets
void SetCidFactory(CidFactory *cidFactory)
Set CID factory.
static TypeId GetTypeId()
Get the type ID.
void AddConnection(Ptr< WimaxConnection > connection, Cid::Type type)
add a connection to the list of managed connections
CidFactory * m_cidFactory
the factory
std::vector< Ptr< WimaxConnection > > m_multicastConnections
multicast connections
A base class which provides memory management and object aggregation.
Smart pointer class similar to boost::intrusive_ptr.
This class implements the ranging response message described by "IEEE Standard forLocal and metropoli...
void SetBasicCid(Cid basicCid)
set basic CID.
void SetPrimaryCid(Cid primaryCid)
set primary CID.
This class is used by the base station to store some information related to subscriber station in the...
void SetPrimaryCid(Cid primaryCid)
Set primary CID.
void SetBasicCid(Cid basicCid)
Set basic CID.
SchedulingType
section 11.13.11 Service flow scheduling type, page 701
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Ptr< T > CreateObject(Args &&... args)
Create an object by type, with varying number of constructor parameters.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.