Public Types | Public Member Functions

ns3::ServiceFlowManager Class Reference

Inheritance diagram for ns3::ServiceFlowManager:
Inheritance graph
[legend]
Collaboration diagram for ns3::ServiceFlowManager:
Collaboration graph
[legend]

List of all members.

Public Types

enum  ConfirmationCode { CONFIRMATION_CODE_SUCCESS, CONFIRMATION_CODE_REJECT }

Public Member Functions

void DoDispose (void)
void AddServiceFlow (ServiceFlow *serviceFlow)
ServiceFlowGetServiceFlow (uint32_t sfid) const
ServiceFlowGetServiceFlow (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)
ServiceFlowGetNextServiceFlowToAllocate ()
uint32_t GetNrServiceFlows (void) const
ServiceFlowDoClassify (Ipv4Address SrcAddress, Ipv4Address DstAddress, uint16_t SrcPort, uint16_t DstPort, uint8_t Proto, ServiceFlow::Direction dir) const

Member Function Documentation

bool ns3::ServiceFlowManager::AreServiceFlowsAllocated ( std::vector< ServiceFlow * >  serviceFlows  ) 
Parameters:
serviceFlows the list of the service flows to be checked
Returns:
true if all service flows are allocated, false otherwise
bool ns3::ServiceFlowManager::AreServiceFlowsAllocated (  ) 
Returns:
true if all service flows are allocated, false otherwise
bool ns3::ServiceFlowManager::AreServiceFlowsAllocated ( std::vector< ServiceFlow * > *  serviceFlows  ) 
Parameters:
serviceFlows the list of the service flows to be checked
Returns:
true if all service flows are allocated, false otherwise
ServiceFlow* ns3::ServiceFlowManager::DoClassify ( Ipv4Address  SrcAddress,
Ipv4Address  DstAddress,
uint16_t  SrcPort,
uint16_t  DstPort,
uint8_t  Proto,
ServiceFlow::Direction  dir 
) const
Parameters:
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
Returns:
the service flow to which this ip flow is associated
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 (  ) 
Returns:
the next service flow to be allocated
uint32_t ns3::ServiceFlowManager::GetNrServiceFlows ( void   )  const
Returns:
the number of all service flows

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