A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ns3::FlowMonitorHelper Class Reference

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< FlowClassifierGetClassifier ()
 Retrieve the FlowClassifier object created by the Install* methods.
 
Ptr< FlowMonitorGetMonitor ()
 Retrieve the FlowMonitor object created by the Install* methods.
 
Ptr< FlowMonitorInstall (NodeContainer nodes)
 Enable flow monitoring on a set of nodes. More...
 
Ptr< FlowMonitorInstall (Ptr< Node > node)
 Enable flow monitoring on a single node. More...
 
Ptr< FlowMonitorInstallAll ()
 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< FlowClassifierm_flowClassifier
 
Ptr< FlowMonitorm_flowMonitor
 
ObjectFactory m_monitorFactory
 

Detailed Description

Helper to enable IPv4 flow monitoring on a set of Nodes.

Definition at line 35 of file flow-monitor-helper.h.

Member Function Documentation

Ptr< FlowMonitor > ns3::FlowMonitorHelper::Install ( NodeContainer  nodes)

Enable flow monitoring on a set of nodes.

Parameters
nodesA 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.

Parameters
nodeA Ptr<Node> to the node on which to enable flow monitoring.

Definition at line 80 of file flow-monitor-helper.cc.

References GetClassifier(), and GetMonitor().


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