ns-3
ns3::WimaxConnection Class Reference
Inheritance diagram for ns3::WimaxConnection:
Collaboration diagram for ns3::WimaxConnection:

List of all members.

Public Types

typedef std::list< Ptr< const
Packet > > 
FragmentsQueue

Public Member Functions

 WimaxConnection (Cid cid, enum Cid::Type type)
Cid GetCid (void) const
enum Cid::Type GetType (void) const
Ptr< WimaxMacQueueGetQueue (void) const
void SetServiceFlow (ServiceFlow *serviceFlow)
 set the service flow associated to this connection
ServiceFlowGetServiceFlow (void) const
uint8_t GetSchedulingType (void) const
bool Enqueue (Ptr< Packet > packet, const MacHeaderType &hdrType, const GenericMacHeader &hdr)
 enqueue a packet in the queue of the connection
Ptr< PacketDequeue (MacHeaderType::HeaderType packetType=MacHeaderType::HEADER_TYPE_GENERIC)
 dequeue a packet from the queue of the connection
Ptr< PacketDequeue (MacHeaderType::HeaderType packetType, uint32_t availableByte)
bool HasPackets (void) const
bool HasPackets (MacHeaderType::HeaderType packetType) const
std::string GetTypeStr (void) const
const FragmentsQueue GetFragmentsQueue (void) const
 get a queue of received fragments
void FragmentEnqueue (Ptr< const Packet > fragment)
 enqueue a received packet (that is a fragment) into the fragments queue
void ClearFragmentsQueue (void)
 delete all enqueued fragments

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::WimaxConnection.

Member Function Documentation

Ptr< Packet > ns3::WimaxConnection::Dequeue ( MacHeaderType::HeaderType  packetType = MacHeaderType::HEADER_TYPE_GENERIC)

dequeue a packet from the queue of the connection

Parameters:
packetTypethe type of the packet to dequeue

References ns3::WimaxMacQueue::Dequeue().

Referenced by ns3::BSSchedulerRtps::BSSchedulerRTPSConnection(), and ns3::SSScheduler::Schedule().

bool ns3::WimaxConnection::Enqueue ( Ptr< Packet packet,
const MacHeaderType hdrType,
const GenericMacHeader &  hdr 
)

enqueue a packet in the queue of the connection

Parameters:
packetthe packet to be enqueued
hdrTypethe header type of the packet
hdrthe header of the packet

References ns3::WimaxMacQueue::Enqueue().

Referenced by ns3::BaseStationNetDevice::Enqueue(), and ns3::SubscriberStationNetDevice::Enqueue().

void ns3::WimaxConnection::FragmentEnqueue ( Ptr< const Packet fragment)

enqueue a received packet (that is a fragment) into the fragments queue

Parameters:
fragmentreceived fragment
uint8_t ns3::WimaxConnection::GetSchedulingType ( void  ) const
Returns:
the scheduling type of this connection

Referenced by ns3::SubscriberStationNetDevice::Enqueue().

Returns:
the service flow associated to this connection

Referenced by ns3::BSSchedulerRtps::BSSchedulerRTPSConnection(), and ns3::SubscriberStationNetDevice::SendBurst().

This method returns the TypeId associated to ns3::WimaxConnection.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::SubscriberStationNetDevice/BasicConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::SubscriberStationNetDevice/PrimaryConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::WimaxConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/BasicConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/PrimaryConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::WimaxNetDevice/BroadcastConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::AlohaNoackNetDevice/Phy/$ns3::WimaxNetDevice/InitialRangingConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::SubscriberStationNetDevice/BasicConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::SubscriberStationNetDevice/PrimaryConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::WimaxConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/BasicConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/PrimaryConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::WimaxNetDevice/BroadcastConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::NonCommunicatingNetDevice/Phy/$ns3::WimaxNetDevice/InitialRangingConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/BasicConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::SubscriberStationNetDevice/PrimaryConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/BasicConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/$ns3::SubscriberStationNetDevice/PrimaryConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/BroadcastConnection
  • /NodeList/[i]/DeviceList/[i]/$ns3::WimaxNetDevice/InitialRangingConnection

Attributes defined for this type:

No TraceSources defined for this type.

Reimplemented from ns3::Object.

References GetQueue(), and ns3::TypeId::SetParent().

bool ns3::WimaxConnection::HasPackets ( void  ) const
Returns:
true if the connection has at least one packet in its queue, false otherwise

Referenced by ns3::SSScheduler::Schedule().

Returns:
true if the connection has at least one packet of type packetType in its queue, false otherwise
Parameters:
packetTypetype of packet to check in the queue

set the service flow associated to this connection

Parameters:
serviceFlowThe service flow to be associated to this connection

Referenced by ns3::BsServiceFlowManager::ProcessDsaReq().


The documentation for this class was generated from the following files: