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. More... | |
Ptr< FlowMonitor > | Install (Ptr< Node > node) |
Enable flow monitoring on a single node. More... | |
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.
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(), and ns3::Object::GetObject().
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(), and GetMonitor().