28 #include "ns3/pointer.h"
129 std::vector<Ptr<WimaxConnection> >::const_iterator iter;
133 if ((*iter)->GetCid () == cid)
141 if ((*iter)->GetCid () == cid)
149 if ((*iter)->GetCid () == cid)
158 std::vector<Ptr<WimaxConnection> >
161 std::vector<Ptr<WimaxConnection> > connections;
185 uint32_t nrPackets = 0;
194 nrPackets += (*iter)->GetQueue ()->GetSize ();
203 nrPackets += (*iter)->GetQueue ()->GetSize ();
214 nrPackets += (*iter)->GetQueue ()->GetSize ();
230 std::vector<Ptr<WimaxConnection> >::const_iterator iter;
233 if ((*iter)->HasPackets ())
241 if ((*iter)->HasPackets ())
249 if ((*iter)->HasPackets ())
Ptr< WimaxConnection > GetConnection(Cid cid)
smart pointer class similar to boost::intrusive_ptr
Doxygen introspection did not find any typical Config paths.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register the class in the ns-3 factory.
void SetPrimaryCid(Cid primaryCid)
void DoDispose(void)
This method is called by Object::Dispose or by the object's destructor, whichever comes first...
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_FATAL_ERROR(msg)
fatal error handling
static TypeId GetTypeId(void)
void SetBasicCid(Cid basicCid)
uint32_t GetNPackets(Cid::Type type, ServiceFlow::SchedulingType schedulingType) const
std::vector< Ptr< WimaxConnection > > m_primaryConnections
std::vector< Ptr< WimaxConnection > > m_multicastConnections
void AddConnection(Ptr< WimaxConnection > connection, Cid::Type type)
add a connection to the list of managed connections
std::vector< Ptr< WimaxConnection > > m_basicConnections
std::vector< Ptr< WimaxConnection > > m_transportConnections
CidFactory * m_cidFactory
bool HasPackets(void) const
void AllocateManagementConnections(SSRecord *ssRecord, RngRsp *rngrsp)
allocates the management connection for an ss record.
Ptr< WimaxConnection > CreateConnection(Cid::Type type)
create a connection of type type
void SetCidFactory(CidFactory *cidFactory)
void SetPrimaryCid(Cid primaryCid)
void SetBasicCid(Cid basicCid)
Cid Allocate(enum Cid::Type type)
std::vector< Ptr< WimaxConnection > > GetConnections(Cid::Type type) const
This class is used by the base station to store some information related to subscriber station in the...
a base class which provides memory management and object aggregation
This class is used exclusively by the BS to allocate CIDs to new connections.
Cid AllocateTransportOrSecondary(void)
This function returns the next Transport (or Secondary) CID.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)