NS-3
|
#include <service-flow-manager.h>
Public Types | |
enum | ConfirmationCode { CONFIRMATION_CODE_SUCCESS, CONFIRMATION_CODE_REJECT } |
Public Member Functions | |
void | DoDispose (void) |
void | AddServiceFlow (ServiceFlow *serviceFlow) |
ServiceFlow * | GetServiceFlow (uint32_t sfid) const |
ServiceFlow * | GetServiceFlow (Cid cid) const |
std::vector< ServiceFlow * > | GetServiceFlows (enum ServiceFlow::SchedulingType schedulingType) const |
bool | AreServiceFlowsAllocated () |
bool | AreServiceFlowsAllocated (std::vector< ServiceFlow * > *serviceFlows) |
bool | AreServiceFlowsAllocated (std::vector< ServiceFlow * > serviceFlows) |
ServiceFlow * | GetNextServiceFlowToAllocate () |
uint32_t | GetNrServiceFlows (void) const |
ServiceFlow * | DoClassify (Ipv4Address SrcAddress, Ipv4Address DstAddress, uint16_t SrcPort, uint16_t DstPort, uint8_t Proto, ServiceFlow::Direction dir) const |
The same service flow manager class serves both for BS and SS though some functions are exclusive to only one of them.
bool ns3::ServiceFlowManager::AreServiceFlowsAllocated | ( | std::vector< ServiceFlow * > | serviceFlows | ) |
serviceFlows | the list of the service flows to be checked |
bool ns3::ServiceFlowManager::AreServiceFlowsAllocated | ( | ) |
bool ns3::ServiceFlowManager::AreServiceFlowsAllocated | ( | std::vector< ServiceFlow * > * | serviceFlows | ) |
serviceFlows | the list of the service flows to be checked |
ServiceFlow* ns3::ServiceFlowManager::DoClassify | ( | Ipv4Address | SrcAddress, |
Ipv4Address | DstAddress, | ||
uint16_t | SrcPort, | ||
uint16_t | DstPort, | ||
uint8_t | Proto, | ||
ServiceFlow::Direction | dir | ||
) | const |
SrcAddress | the source ip address |
DstAddress | the destination ip address |
SrcPort | the source port |
DstPort | the destination port |
Proto | the protocol |
dir | the direction of the service flow |
void ns3::ServiceFlowManager::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.
Reimplemented in ns3::BsServiceFlowManager, and ns3::SsServiceFlowManager.
ServiceFlow* ns3::ServiceFlowManager::GetNextServiceFlowToAllocate | ( | ) |
uint32_t ns3::ServiceFlowManager::GetNrServiceFlows | ( | void | ) | const |