#include <ss-service-flow-manager.h>
Public Types | |
enum | ConfirmationCode { CONFIRMATION_CODE_SUCCESS, CONFIRMATION_CODE_REJECT } |
![]() | |
enum | ConfirmationCode { CONFIRMATION_CODE_SUCCESS, CONFIRMATION_CODE_REJECT } |
Public Member Functions | |
SsServiceFlowManager (Ptr< SubscriberStationNetDevice > device) | |
creates a service flow manager and attaches it to a device | |
~SsServiceFlowManager (void) | |
void | AddServiceFlow (ServiceFlow *serviceFlow) |
add a service flow to the list | |
void | AddServiceFlow (ServiceFlow serviceFlow) |
add a service flow to the list | |
Ptr< Packet > | CreateDsaAck (void) |
DsaReq | CreateDsaReq (const ServiceFlow *serviceFlow) |
void | DoDispose (void) |
EventId | GetDsaAckTimeoutEvent (void) const |
EventId | GetDsaRspTimeoutEvent (void) const |
uint8_t | GetMaxDsaReqRetries (void) const |
void | InitiateServiceFlows (void) |
void | ProcessDsaRsp (const DsaRsp &dsaRsp) |
void | ScheduleDsaReq (const ServiceFlow *serviceFlow) |
void | SetMaxDsaReqRetries (uint8_t maxDsaReqRetries) |
sets the maximum retries on DSA request message | |
![]() | |
ServiceFlowManager () | |
~ServiceFlowManager (void) | |
bool | AreServiceFlowsAllocated () |
bool | AreServiceFlowsAllocated (std::vector< ServiceFlow * > *serviceFlows) |
bool | AreServiceFlowsAllocated (std::vector< ServiceFlow * > serviceFlows) |
ServiceFlow * | DoClassify (Ipv4Address SrcAddress, Ipv4Address DstAddress, uint16_t SrcPort, uint16_t DstPort, uint8_t Proto, ServiceFlow::Direction dir) const |
ServiceFlow * | GetNextServiceFlowToAllocate () |
uint32_t | GetNrServiceFlows (void) const |
ServiceFlow * | GetServiceFlow (uint32_t sfid) const |
ServiceFlow * | GetServiceFlow (Cid cid) const |
std::vector< ServiceFlow * > | GetServiceFlows (enum ServiceFlow::SchedulingType schedulingType) const |
![]() | |
Object () | |
virtual | ~Object () |
void | AggregateObject (Ptr< Object > other) |
void | Dispose (void) |
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) |
![]() | |
SimpleRefCount () | |
SimpleRefCount (const SimpleRefCount &o) | |
uint32_t | GetReferenceCount (void) const |
SimpleRefCount & | operator= (const SimpleRefCount &o) |
void | Ref (void) const |
void | Unref (void) const |
![]() | |
virtual | ~ObjectBase () |
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 Attributes | |
uint16_t | m_currentTransactionId |
Ptr< SubscriberStationNetDevice > | m_device |
DsaAck | m_dsaAck |
EventId | m_dsaAckTimeoutEvent |
DsaReq | m_dsaReq |
uint8_t | m_dsaReqRetries |
EventId | m_dsaRspTimeoutEvent |
uint8_t | m_maxDsaReqRetries |
ServiceFlow * | m_pendingServiceFlow |
uint32_t | m_sfidIndex |
uint16_t | m_transactionIdIndex |
Additional Inherited Members | |
![]() | |
static TypeId | GetTypeId (void) |
![]() | |
Object (const Object &o) | |
virtual void | DoInitialize (void) |
virtual void | NotifyNewAggregate (void) |
Definition at line 42 of file ss-service-flow-manager.h.
Definition at line 45 of file ss-service-flow-manager.h.
ns3::SsServiceFlowManager::SsServiceFlowManager | ( | Ptr< SubscriberStationNetDevice > | device | ) |
creates a service flow manager and attaches it to a device
device | the device to which the service flow manager will be attached |
Definition at line 45 of file ss-service-flow-manager.cc.
ns3::SsServiceFlowManager::~SsServiceFlowManager | ( | void | ) |
Definition at line 58 of file ss-service-flow-manager.cc.
void ns3::SsServiceFlowManager::AddServiceFlow | ( | ServiceFlow * | serviceFlow | ) |
add a service flow to the list
serviceFlow | the service flow to add |
Reimplemented from ns3::ServiceFlowManager.
Definition at line 101 of file ss-service-flow-manager.cc.
Referenced by AddServiceFlow(), and ns3::SubscriberStationNetDevice::AddServiceFlow().
void ns3::SsServiceFlowManager::AddServiceFlow | ( | ServiceFlow | serviceFlow | ) |
add a service flow to the list
serviceFlow | the service flow to add |
Definition at line 93 of file ss-service-flow-manager.cc.
References AddServiceFlow(), and ns3::ServiceFlow::CopyParametersFrom().
Definition at line 131 of file ss-service-flow-manager.cc.
References ns3::Packet::AddHeader(), CONFIRMATION_CODE_SUCCESS, ns3::DsaReq::GetTransactionId(), m_dsaAck, m_dsaReq, ns3::ManagementMessageType::MESSAGE_TYPE_DSA_ACK, ns3::DsaAck::SetConfirmationCode(), and ns3::DsaAck::SetTransactionId().
Referenced by ProcessDsaRsp().
DsaReq ns3::SsServiceFlowManager::CreateDsaReq | ( | const ServiceFlow * | serviceFlow | ) |
Definition at line 117 of file ss-service-flow-manager.cc.
References m_currentTransactionId, m_transactionIdIndex, ns3::DsaReq::SetServiceFlow(), and ns3::DsaReq::SetTransactionId().
Referenced by ScheduleDsaReq().
|
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::ServiceFlowManager.
Definition at line 63 of file ss-service-flow-manager.cc.
EventId ns3::SsServiceFlowManager::GetDsaAckTimeoutEvent | ( | void | ) | const |
Definition at line 87 of file ss-service-flow-manager.cc.
References m_dsaAckTimeoutEvent.
EventId ns3::SsServiceFlowManager::GetDsaRspTimeoutEvent | ( | void | ) | const |
Definition at line 81 of file ss-service-flow-manager.cc.
References m_dsaRspTimeoutEvent.
uint8_t ns3::SsServiceFlowManager::GetMaxDsaReqRetries | ( | void | ) | const |
Definition at line 75 of file ss-service-flow-manager.cc.
References m_maxDsaReqRetries.
void ns3::SsServiceFlowManager::InitiateServiceFlows | ( | void | ) |
Definition at line 108 of file ss-service-flow-manager.cc.
References ns3::ServiceFlowManager::GetNextServiceFlowToAllocate(), m_pendingServiceFlow, NS_ASSERT_MSG, and ScheduleDsaReq().
Referenced by ns3::SSLinkManager::PerformRanging().
void ns3::SsServiceFlowManager::ProcessDsaRsp | ( | const DsaRsp & | dsaRsp | ) |
Definition at line 186 of file ss-service-flow-manager.cc.
References ns3::ConnectionManager::AddConnection(), CreateDsaAck(), ns3::SubscriberStationNetDevice::Enqueue(), ns3::ServiceFlow::GetCid(), ns3::WimaxNetDevice::GetConnectionManager(), ns3::ServiceFlowManager::GetNextServiceFlowToAllocate(), ns3::Object::GetObject(), ns3::SubscriberStationNetDevice::GetPrimaryConnection(), ns3::DsaRsp::GetServiceFlow(), ns3::DsaRsp::GetTransactionId(), m_currentTransactionId, m_device, m_dsaReqRetries, m_pendingServiceFlow, ScheduleDsaReq(), ns3::SubscriberStationNetDevice::SetAreServiceFlowsAllocated(), ns3::ServiceFlow::SetConnection(), ns3::ServiceFlow::SetIsEnabled(), ns3::WimaxConnection::SetServiceFlow(), ns3::ServiceFlow::SetUnsolicitedGrantInterval(), ns3::ServiceFlow::SetUnsolicitedPollingInterval(), and ns3::Cid::TRANSPORT.
Referenced by ns3::SubscriberStationNetDevice::DoReceive().
void ns3::SsServiceFlowManager::ScheduleDsaReq | ( | const ServiceFlow * | serviceFlow | ) |
Definition at line 144 of file ss-service-flow-manager.cc.
References ns3::Packet::AddHeader(), ns3::Simulator::Cancel(), CreateDsaReq(), ns3::SubscriberStationNetDevice::Enqueue(), ns3::SubscriberStationNetDevice::GetIntervalT7(), ns3::Object::GetObject(), ns3::SubscriberStationNetDevice::GetPrimaryConnection(), ns3::EventId::IsRunning(), m_device, m_dsaReq, m_dsaReqRetries, m_dsaRspTimeoutEvent, m_maxDsaReqRetries, ns3::ManagementMessageType::MESSAGE_TYPE_DSA_REQ, NS_LOG_DEBUG, and ns3::Simulator::Schedule().
Referenced by InitiateServiceFlows(), and ProcessDsaRsp().
void ns3::SsServiceFlowManager::SetMaxDsaReqRetries | ( | uint8_t | maxDsaReqRetries | ) |
sets the maximum retries on DSA request message
maxDsaReqRetries | the maximum retries on DSA request message |
Definition at line 69 of file ss-service-flow-manager.cc.
References m_maxDsaReqRetries.
|
private |
Definition at line 104 of file ss-service-flow-manager.h.
Referenced by CreateDsaReq(), and ProcessDsaRsp().
|
private |
Definition at line 92 of file ss-service-flow-manager.h.
Referenced by ProcessDsaRsp(), and ScheduleDsaReq().
|
private |
Definition at line 102 of file ss-service-flow-manager.h.
Referenced by CreateDsaAck().
|
private |
Definition at line 99 of file ss-service-flow-manager.h.
Referenced by GetDsaAckTimeoutEvent().
|
private |
Definition at line 101 of file ss-service-flow-manager.h.
Referenced by CreateDsaAck(), and ScheduleDsaReq().
|
private |
Definition at line 106 of file ss-service-flow-manager.h.
Referenced by ProcessDsaRsp(), and ScheduleDsaReq().
|
private |
Definition at line 98 of file ss-service-flow-manager.h.
Referenced by GetDsaRspTimeoutEvent(), and ScheduleDsaReq().
|
private |
Definition at line 96 of file ss-service-flow-manager.h.
Referenced by GetMaxDsaReqRetries(), ScheduleDsaReq(), and SetMaxDsaReqRetries().
|
private |
Definition at line 109 of file ss-service-flow-manager.h.
Referenced by InitiateServiceFlows(), and ProcessDsaRsp().
|
private |
Definition at line 94 of file ss-service-flow-manager.h.
|
private |
Definition at line 105 of file ss-service-flow-manager.h.
Referenced by CreateDsaReq().