24 #include "ns3/simulator.h" 25 #include "ns3/packet.h" 33 #include "ns3/pointer.h" 40 #include "ns3/buffer.h" 53 .SetGroupName(
"Wimax");
92 if ((*iter)->GetDirection () == dir)
94 if ((*iter)->CheckClassifierMatch (srcAddress, dstAddress, srcPort, dstPort, proto))
108 if ((*iter)->GetSfid () == sfid)
114 NS_LOG_DEBUG (
"GetServiceFlow: service flow not found!");
129 NS_LOG_DEBUG (
"GetServiceFlow: service flow not found!");
133 std::vector<ServiceFlow*>
136 std::vector<ServiceFlow*> tmpServiceFlows;
141 tmpServiceFlows.push_back ((*iter));
144 return tmpServiceFlows;
162 for (std::vector<ServiceFlow*>::const_iterator iter = serviceFlowVector.begin (); iter != serviceFlowVector.end (); ++iter)
164 if (!(*iter)->GetIsEnabled ())
175 std::vector<ServiceFlow*>::iterator iter;
178 if (!(*iter)->GetIsEnabled ())
static TypeId GetTypeId(void)
Get the type ID.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
ServiceFlow * DoClassify(Ipv4Address SrcAddress, Ipv4Address DstAddress, uint16_t SrcPort, uint16_t DstPort, uint8_t Proto, ServiceFlow::Direction dir) const
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
ServiceFlow * GetNextServiceFlowToAllocate()
uint32_t GetNrServiceFlows(void) const
SchedulingType
section 11.13.11 Service flow scheduling type, page 701
ServiceFlow * GetServiceFlow(uint32_t sfid) const
Get service flow by flow id.
Direction
Direction enumeration.
bool AreServiceFlowsAllocated()
void DoDispose(void)
Destructor implementation.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
This class implements service flows as described by the IEEE-802.16 standard.
Ipv4 addresses are stored in host order in this class.
std::vector< ServiceFlow * > * m_serviceFlows
the service flows
void AddServiceFlow(ServiceFlow *serviceFlow)
Add service flow function.
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
~ServiceFlowManager(void)
std::vector< ServiceFlow * > GetServiceFlows(enum ServiceFlow::SchedulingType schedulingType) const
Get service flows function.
A base class which provides memory management and object aggregation.
uint16_t GetIdentifier(void) const
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.