A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::BsServiceFlowManager Class Reference

#include <bs-service-flow-manager.h>

+ Inheritance diagram for ns3::BsServiceFlowManager:
+ Collaboration diagram for ns3::BsServiceFlowManager:

Public Types

enum  ConfirmationCode { CONFIRMATION_CODE_SUCCESS, CONFIRMATION_CODE_REJECT }
 
- Public Types inherited from ns3::ServiceFlowManager
enum  ConfirmationCode { CONFIRMATION_CODE_SUCCESS, CONFIRMATION_CODE_REJECT }
 

Public Member Functions

 BsServiceFlowManager (Ptr< BaseStationNetDevice > device)
 
 ~BsServiceFlowManager (void)
 
void AddMulticastServiceFlow (ServiceFlow sf, enum WimaxPhy::ModulationType modulation)
 add a multicast service flow More...
 
void AddServiceFlow (ServiceFlow *serviceFlow)
 Add a new service flow. More...
 
void AllocateServiceFlows (const DsaReq &dsaReq, Cid cid)
 
void DoDispose (void)
 This method is called by Object::Dispose or by the object's destructor, whichever comes first. More...
 
EventId GetDsaAckTimeoutEvent (void) const
 
ServiceFlowGetServiceFlow (uint32_t sfid) const
 
ServiceFlowGetServiceFlow (Cid cid) const
 
std::vector< ServiceFlow * > GetServiceFlows (ServiceFlow::SchedulingType schedulingType) const
 
void ProcessDsaAck (const DsaAck &dsaAck, Cid cid)
 process a DSA-ACK message More...
 
ServiceFlowProcessDsaReq (const DsaReq &dsaReq, Cid cid)
 process a DSA-Req message More...
 
void SetMaxDsaRspRetries (uint8_t maxDsaRspRetries)
 set the maximum Dynamic ServiceFlow Add (DSA) retries More...
 
- Public Member Functions inherited from ns3::ServiceFlowManager
 ServiceFlowManager ()
 
 ~ServiceFlowManager (void)
 
void AddServiceFlow (ServiceFlow *serviceFlow)
 
bool AreServiceFlowsAllocated ()
 
bool AreServiceFlowsAllocated (std::vector< ServiceFlow * > *serviceFlows)
 
bool AreServiceFlowsAllocated (std::vector< ServiceFlow * > serviceFlows)
 
ServiceFlowDoClassify (Ipv4Address SrcAddress, Ipv4Address DstAddress, uint16_t SrcPort, uint16_t DstPort, uint8_t Proto, ServiceFlow::Direction dir) const
 
void DoDispose (void)
 This method is called by Object::Dispose or by the object's destructor, whichever comes first. More...
 
ServiceFlowGetNextServiceFlowToAllocate ()
 
uint32_t GetNrServiceFlows (void) const
 
ServiceFlowGetServiceFlow (uint32_t sfid) const
 
ServiceFlowGetServiceFlow (Cid cid) const
 
std::vector< ServiceFlow * > GetServiceFlows (enum ServiceFlow::SchedulingType schedulingType) const
 
- Public Member Functions inherited from ns3::Object
 Object ()
 
virtual ~Object ()
 
void AggregateObject (Ptr< Object > other)
 
void Dispose (void)
 Run the DoDispose methods of this object and all the objects aggregated to it. More...
 
AggregateIterator GetAggregateIterator (void) const
 
virtual TypeId GetInstanceTypeId (void) const
 
template<typename T >
Ptr< T > GetObject (void) const
 
template<typename T >
Ptr< T > GetObject (TypeId tid) const
 
void Initialize (void)
 This method calls the virtual DoInitialize method on all the objects aggregated to this object. More...
 
- Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
 SimpleRefCount ()
 Constructor. More...
 
 SimpleRefCount (const SimpleRefCount &o)
 Copy constructor. More...
 
uint32_t GetReferenceCount (void) const
 Get the reference count of the object. More...
 
SimpleRefCountoperator= (const SimpleRefCount &o)
 Assignment. More...
 
void Ref (void) const
 Increment the reference count. More...
 
void Unref (void) const
 Decrement the reference count. More...
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
void GetAttribute (std::string name, AttributeValue &value) const
 
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
 
void SetAttribute (std::string name, const AttributeValue &value)
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 

Private Member Functions

DsaRsp CreateDsaRsp (const ServiceFlow *serviceFlow, uint16_t transactionId)
 
uint8_t GetMaxDsaRspRetries (void) const
 
void ScheduleDsaRsp (ServiceFlow *serviceFlow, Cid cid)
 

Private Attributes

Ptr< WimaxNetDevicem_device
 
EventId m_dsaAckTimeoutEvent
 
Cid m_inuseScheduleDsaRspCid
 
uint8_t m_maxDsaRspRetries
 
uint32_t m_sfidIndex
 

Additional Inherited Members

- Static Public Member Functions inherited from ns3::ServiceFlowManager
static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::Object
static TypeId GetTypeId (void)
 Register this type. More...
 
- Static Public Member Functions inherited from ns3::SimpleRefCount< Object, ObjectBase, ObjectDeleter >
static void Cleanup (void)
 Noop. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Protected Member Functions inherited from ns3::Object
 Object (const Object &o)
 
virtual void DoInitialize (void)
 This method is called only once by Object::Initialize. More...
 
virtual void NotifyNewAggregate (void)
 This method is invoked whenever two sets of objects are aggregated together. More...
 
- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 This method is invoked once all member attributes have been initialized. More...
 

Detailed Description

Definition at line 43 of file bs-service-flow-manager.h.

Member Enumeration Documentation

Enumerator
CONFIRMATION_CODE_SUCCESS 
CONFIRMATION_CODE_REJECT 

Definition at line 46 of file bs-service-flow-manager.h.

Constructor & Destructor Documentation

ns3::BsServiceFlowManager::BsServiceFlowManager ( Ptr< BaseStationNetDevice device)

Definition at line 44 of file bs-service-flow-manager.cc.

References ns3::Cid::InitialRanging(), and m_inuseScheduleDsaRspCid.

+ Here is the call graph for this function:

ns3::BsServiceFlowManager::~BsServiceFlowManager ( void  )

Definition at line 52 of file bs-service-flow-manager.cc.

Member Function Documentation

void ns3::BsServiceFlowManager::AddMulticastServiceFlow ( ServiceFlow  sf,
enum WimaxPhy::ModulationType  modulation 
)
void ns3::BsServiceFlowManager::AddServiceFlow ( ServiceFlow serviceFlow)

Add a new service flow.

Parameters
serviceFlowthe service flow to add

Definition at line 81 of file bs-service-flow-manager.cc.

References ns3::ServiceFlowManager::AddServiceFlow().

Referenced by AddMulticastServiceFlow(), and ProcessDsaReq().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::BsServiceFlowManager::AllocateServiceFlows ( const DsaReq dsaReq,
Cid  cid 
)

Definition at line 226 of file bs-service-flow-manager.cc.

References NS_LOG_INFO, ProcessDsaReq(), and ScheduleDsaRsp().

+ Here is the call graph for this function:

DsaRsp ns3::BsServiceFlowManager::CreateDsaRsp ( const ServiceFlow serviceFlow,
uint16_t  transactionId 
)
private

Definition at line 105 of file bs-service-flow-manager.cc.

References CONFIRMATION_CODE_SUCCESS, ns3::DsaRsp::SetConfirmationCode(), ns3::DsaRsp::SetServiceFlow(), and ns3::DsaRsp::SetTransactionId().

Referenced by ScheduleDsaRsp().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ns3::BsServiceFlowManager::DoDispose ( void  )
virtual

This method is called by Object::Dispose or by the object's destructor, whichever comes first.

Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.

It is safe to call GetObject from within this method.

Reimplemented from ns3::Object.

Definition at line 57 of file bs-service-flow-manager.cc.

References ns3::ServiceFlowManager::DoDispose().

+ Here is the call graph for this function:

EventId ns3::BsServiceFlowManager::GetDsaAckTimeoutEvent ( void  ) const

Definition at line 75 of file bs-service-flow-manager.cc.

References m_dsaAckTimeoutEvent.

uint8_t ns3::BsServiceFlowManager::GetMaxDsaRspRetries ( void  ) const
private

Definition at line 69 of file bs-service-flow-manager.cc.

References m_maxDsaRspRetries.

ServiceFlow * ns3::BsServiceFlowManager::GetServiceFlow ( uint32_t  sfid) const
Returns
the service flow which has as identifier sfid

Definition at line 87 of file bs-service-flow-manager.cc.

References ns3::ServiceFlowManager::GetServiceFlow().

Referenced by ProcessDsaReq().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ServiceFlow * ns3::BsServiceFlowManager::GetServiceFlow ( Cid  cid) const
Returns
the service flow which has as connection identifier cid

Definition at line 93 of file bs-service-flow-manager.cc.

References ns3::ServiceFlowManager::GetServiceFlow().

+ Here is the call graph for this function:

std::vector< ServiceFlow * > ns3::BsServiceFlowManager::GetServiceFlows ( ServiceFlow::SchedulingType  schedulingType) const
Returns
the list of service flows configured with schedulingType as a QoS class

Definition at line 99 of file bs-service-flow-manager.cc.

References ns3::ServiceFlowManager::GetServiceFlows().

+ Here is the call graph for this function:

void ns3::BsServiceFlowManager::ProcessDsaAck ( const DsaAck dsaAck,
Cid  cid 
)

process a DSA-ACK message

Parameters
dsaAckthe message to process
cidthe identifier of the connection on which the message was received

Definition at line 237 of file bs-service-flow-manager.cc.

References ns3::ServiceFlowManager::AreServiceFlowsAllocated(), ns3::DsaAck::GetTransactionId(), m_device, and ns3::ServiceFlow::SF_TYPE_ALL.

+ Here is the call graph for this function:

ServiceFlow * ns3::BsServiceFlowManager::ProcessDsaReq ( const DsaReq dsaReq,
Cid  cid 
)
void ns3::BsServiceFlowManager::SetMaxDsaRspRetries ( uint8_t  maxDsaRspRetries)

set the maximum Dynamic ServiceFlow Add (DSA) retries

Definition at line 63 of file bs-service-flow-manager.cc.

References m_maxDsaRspRetries.

Member Data Documentation

Ptr<WimaxNetDevice> ns3::BsServiceFlowManager::m_device
private
EventId ns3::BsServiceFlowManager::m_dsaAckTimeoutEvent
private

Definition at line 104 of file bs-service-flow-manager.h.

Referenced by GetDsaAckTimeoutEvent(), and ScheduleDsaRsp().

Cid ns3::BsServiceFlowManager::m_inuseScheduleDsaRspCid
private

Definition at line 105 of file bs-service-flow-manager.h.

Referenced by BsServiceFlowManager(), and ScheduleDsaRsp().

uint8_t ns3::BsServiceFlowManager::m_maxDsaRspRetries
private
uint32_t ns3::BsServiceFlowManager::m_sfidIndex
private

Definition at line 102 of file bs-service-flow-manager.h.

Referenced by ProcessDsaReq().


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