Helper to enable IPv4 flow monitoring on a set of Nodes. More...
#include <flow-monitor-helper.h>
Public Member Functions | |
FlowMonitorHelper () | |
Construct a FlowMonitorHelper class which makes it easier to configure and use the FlowMonitor. | |
~FlowMonitorHelper () | |
Dispose of objects allocated by the helper. | |
Ptr< FlowClassifier > | GetClassifier () |
Retrieve the FlowClassifier object created by the Install* methods. | |
Ptr< FlowMonitor > | GetMonitor () |
Retrieve the FlowMonitor object created by the Install* methods. | |
Ptr< FlowMonitor > | Install (NodeContainer nodes) |
Enable flow monitoring on a set of nodes. | |
Ptr< FlowMonitor > | Install (Ptr< Node > node) |
Enable flow monitoring on a single node. | |
Ptr< FlowMonitor > | InstallAll () |
Enable flow monitoring on all nodes. | |
void | SetMonitorAttribute (std::string n1, const AttributeValue &v1) |
Set an attribute for the to-be-created FlowMonitor object. |
Private Attributes | |
Ptr< FlowClassifier > | m_flowClassifier |
Ptr< FlowMonitor > | m_flowMonitor |
ObjectFactory | m_monitorFactory |
Helper to enable IPv4 flow monitoring on a set of Nodes.
Definition at line 35 of file flow-monitor-helper.h.
ns3::FlowMonitorHelper::FlowMonitorHelper | ( | ) |
Construct a FlowMonitorHelper class which makes it easier to configure and use the FlowMonitor.
Definition at line 33 of file flow-monitor-helper.cc.
References m_monitorFactory, and ns3::ObjectFactory::SetTypeId().
ns3::FlowMonitorHelper::~FlowMonitorHelper | ( | ) |
Dispose of objects allocated by the helper.
Definition at line 38 of file flow-monitor-helper.cc.
References ns3::Object::Dispose(), m_flowClassifier, and m_flowMonitor.
Ptr< FlowClassifier > ns3::FlowMonitorHelper::GetClassifier | ( | ) |
Retrieve the FlowClassifier object created by the Install* methods.
Definition at line 69 of file flow-monitor-helper.cc.
References m_flowClassifier.
Referenced by Install().
Ptr< FlowMonitor > ns3::FlowMonitorHelper::GetMonitor | ( | ) |
Retrieve the FlowMonitor object created by the Install* methods.
Definition at line 56 of file flow-monitor-helper.cc.
References ns3::ObjectFactory::Create(), m_flowClassifier, m_flowMonitor, m_monitorFactory, and ns3::FlowMonitor::SetFlowClassifier().
Referenced by Install().
Ptr< FlowMonitor > ns3::FlowMonitorHelper::Install | ( | NodeContainer | nodes | ) |
Enable flow monitoring on a set of nodes.
nodes | A NodeContainer holding the set of nodes to work with. |
Definition at line 92 of file flow-monitor-helper.cc.
References ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), ns3::Object::GetObject(), and m_flowMonitor.
Referenced by InstallAll().
Ptr< FlowMonitor > ns3::FlowMonitorHelper::Install | ( | Ptr< Node > | node | ) |
Enable flow monitoring on a single node.
Definition at line 80 of file flow-monitor-helper.cc.
References GetClassifier(), GetMonitor(), and m_flowMonitor.
Ptr< FlowMonitor > ns3::FlowMonitorHelper::InstallAll | ( | void | ) |
Enable flow monitoring on all nodes.
Definition at line 106 of file flow-monitor-helper.cc.
References ns3::NodeList::Begin(), ns3::NodeList::End(), ns3::Object::GetObject(), Install(), and m_flowMonitor.
Referenced by main().
void ns3::FlowMonitorHelper::SetMonitorAttribute | ( | std::string | n1, |
const AttributeValue & | v1 | ||
) |
Set an attribute for the to-be-created FlowMonitor object.
Definition at line 49 of file flow-monitor-helper.cc.
References m_monitorFactory, and ns3::ObjectFactory::Set().
|
private |
Definition at line 65 of file flow-monitor-helper.h.
Referenced by GetClassifier(), GetMonitor(), and ~FlowMonitorHelper().
|
private |
Definition at line 64 of file flow-monitor-helper.h.
Referenced by GetMonitor(), Install(), InstallAll(), and ~FlowMonitorHelper().
|
private |
Definition at line 63 of file flow-monitor-helper.h.
Referenced by FlowMonitorHelper(), GetMonitor(), and SetMonitorAttribute().