24 #include "ns3/simulator.h"
25 #include "ns3/packet.h"
33 #include "ns3/pointer.h"
40 #include "ns3/buffer.h"
90 if ((*iter)->GetDirection () == dir)
92 if ((*iter)->CheckClassifierMatch (srcAddress, dstAddress, srcPort, dstPort, proto))
106 if ((*iter)->GetSfid () == sfid)
112 NS_LOG_DEBUG (
"GetServiceFlow: service flow not found!");
127 NS_LOG_DEBUG (
"GetServiceFlow: service flow not found!");
131 std::vector<ServiceFlow*>
134 std::vector<ServiceFlow*> tmpServiceFlows;
139 tmpServiceFlows.push_back ((*iter));
142 return tmpServiceFlows;
160 for (std::vector<ServiceFlow*>::const_iterator iter = serviceFlowVector.begin (); iter != serviceFlowVector.end (); ++iter)
162 if (!(*iter)->GetIsEnabled ())
173 std::vector<ServiceFlow*>::iterator iter;
176 if (!(*iter)->GetIsEnabled ())
static TypeId GetTypeId(void)
ServiceFlow * GetServiceFlow(uint32_t sfid) const
ServiceFlow * GetNextServiceFlowToAllocate()
NS_OBJECT_ENSURE_REGISTERED(AntennaModel)
bool AreServiceFlowsAllocated()
uint32_t GetNrServiceFlows(void) const
ServiceFlow * DoClassify(Ipv4Address SrcAddress, Ipv4Address DstAddress, uint16_t SrcPort, uint16_t DstPort, uint8_t Proto, ServiceFlow::Direction dir) const
std::vector< ServiceFlow * > GetServiceFlows(enum ServiceFlow::SchedulingType schedulingType) const
Ipv4 addresses are stored in host order in this class.
std::vector< ServiceFlow * > * m_serviceFlows
void AddServiceFlow(ServiceFlow *serviceFlow)
#define NS_LOG_DEBUG(msg)
~ServiceFlowManager(void)
uint16_t GetIdentifier(void) const
a base class which provides memory management and object aggregation
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
NS_LOG_COMPONENT_DEFINE("ServiceFlowManager")