|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
28 #include "ns3/pointer.h"
44 .SetGroupName(
"Wimax");
130 std::vector<Ptr<WimaxConnection> >::const_iterator iter;
134 if ((*iter)->GetCid () == cid)
142 if ((*iter)->GetCid () == cid)
150 if ((*iter)->GetCid () == cid)
159 std::vector<Ptr<WimaxConnection> >
162 std::vector<Ptr<WimaxConnection> > connections;
186 uint32_t nrPackets = 0;
195 nrPackets += (*iter)->GetQueue ()->GetSize ();
204 nrPackets += (*iter)->GetQueue ()->GetSize ();
215 nrPackets += (*iter)->GetQueue ()->GetSize ();
231 std::vector<Ptr<WimaxConnection> >::const_iterator iter;
234 if ((*iter)->HasPackets ())
242 if ((*iter)->HasPackets ())
250 if ((*iter)->HasPackets ())
CidFactory * m_cidFactory
the factory
static TypeId GetTypeId(void)
Get the type ID.
a unique identifier for an interface.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
void SetCidFactory(CidFactory *cidFactory)
Set CID factory.
Cid Allocate(enum Cid::Type type)
This function returns the next CID for the specified type.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::vector< Ptr< WimaxConnection > > GetConnections(Cid::Type type) const
void SetPrimaryCid(Cid primaryCid)
set primary CID.
void AllocateManagementConnections(SSRecord *ssRecord, RngRsp *rngrsp)
allocates the management connection for an ss record.
void SetBasicCid(Cid basicCid)
set basic CID.
void AddConnection(Ptr< WimaxConnection > connection, Cid::Type type)
add a connection to the list of managed connections
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Ptr< WimaxConnection > CreateConnection(Cid::Type type)
create a connection of type type
Smart pointer class similar to boost::intrusive_ptr.
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
void DoDispose(void)
Destructor implementation.
A base class which provides memory management and object aggregation.
This class is used by the base station to store some information related to subscriber station in the...
std::vector< Ptr< WimaxConnection > > m_basicConnections
basic connections
bool HasPackets(void) const
std::vector< Ptr< WimaxConnection > > m_multicastConnections
multicast connections
Cid AllocateTransportOrSecondary(void)
This function returns the next Transport (or Secondary) CID.
Ptr< WimaxConnection > GetConnection(Cid cid)
std::vector< Ptr< WimaxConnection > > m_primaryConnections
primary connections
void SetBasicCid(Cid basicCid)
Set basic CID.
This class is used exclusively by the BS to allocate CIDs to new connections.
SchedulingType
section 11.13.11 Service flow scheduling type, page 701
void SetPrimaryCid(Cid primaryCid)
Set primary CID.
This class implements the ranging response message described by "IEEE Standard for Local and metropol...
uint32_t GetNPackets(Cid::Type type, ServiceFlow::SchedulingType schedulingType) const
get number of packets
std::vector< Ptr< WimaxConnection > > m_transportConnections
transport connections