build a set of FdNetDevice objects Normally we eschew multiple inheritance, however, the classes PcapUserHelperForDevice and AsciiTraceUserHelperForDevice are treated as "mixins". More...
#include "fd-net-device-helper.h"
 Inheritance diagram for ns3::FdNetDeviceHelper:
 Inheritance diagram for ns3::FdNetDeviceHelper: Collaboration diagram for ns3::FdNetDeviceHelper:
 Collaboration diagram for ns3::FdNetDeviceHelper:| Public Member Functions | |
| FdNetDeviceHelper () | |
| Construct a FdNetDeviceHelper.  More... | |
| virtual | ~FdNetDeviceHelper () | 
| virtual NetDeviceContainer | Install (Ptr< Node > node) const | 
| This method creates a FdNetDevice and associates it to a node.  More... | |
| virtual NetDeviceContainer | Install (std::string name) const | 
| This method creates a FdNetDevice and associates it to a node.  More... | |
| virtual NetDeviceContainer | Install (const NodeContainer &c) const | 
| This method creates a FdNetDevice and associates it to a node.  More... | |
| void | SetAttribute (std::string n1, const AttributeValue &v1) | 
| void | SetTypeId (std::string type) | 
| Set the TypeId of the Objects to be created by this helper.  More... | |
|  Public Member Functions inherited from ns3::PcapHelperForDevice | |
| PcapHelperForDevice () | |
| Construct a PcapHelperForDevice.  More... | |
| virtual | ~PcapHelperForDevice () | 
| Destroy a PcapHelperForDevice.  More... | |
| void | EnablePcap (std::string prefix, Ptr< NetDevice > nd, bool promiscuous=false, bool explicitFilename=false) | 
| Enable pcap output the indicated net device.  More... | |
| void | EnablePcap (std::string prefix, std::string ndName, bool promiscuous=false, bool explicitFilename=false) | 
| Enable pcap output the indicated net device using a device previously named using the ns-3 object name service.  More... | |
| void | EnablePcap (std::string prefix, NetDeviceContainer d, bool promiscuous=false) | 
| Enable pcap output on each device in the container which is of the appropriate type.  More... | |
| void | EnablePcap (std::string prefix, NodeContainer n, bool promiscuous=false) | 
| Enable pcap output on each device (which is of the appropriate type) in the nodes provided in the container.  More... | |
| void | EnablePcap (std::string prefix, uint32_t nodeid, uint32_t deviceid, bool promiscuous=false) | 
| Enable pcap output on the device specified by a global node-id (of a previously created node) and associated device-id.  More... | |
| void | EnablePcapAll (std::string prefix, bool promiscuous=false) | 
| Enable pcap output on each device (which is of the appropriate type) in the set of all nodes created in the simulation.  More... | |
|  Public Member Functions inherited from ns3::AsciiTraceHelperForDevice | |
| AsciiTraceHelperForDevice () | |
| Construct an AsciiTraceHelperForDevice.  More... | |
| virtual | ~AsciiTraceHelperForDevice () | 
| Destroy an AsciiTraceHelperForDevice.  More... | |
| void | EnableAscii (std::string prefix, Ptr< NetDevice > nd, bool explicitFilename=false) | 
| Enable ascii trace output on the indicated net device.  More... | |
| void | EnableAscii (Ptr< OutputStreamWrapper > stream, Ptr< NetDevice > nd) | 
| Enable ascii trace output on the indicated net device.  More... | |
| void | EnableAscii (std::string prefix, std::string ndName, bool explicitFilename=false) | 
| Enable ascii trace output the indicated net device using a device previously named using the ns-3 object name service.  More... | |
| void | EnableAscii (Ptr< OutputStreamWrapper > stream, std::string ndName) | 
| Enable ascii trace output the indicated net device using a device previously named using the ns-3 object name service.  More... | |
| void | EnableAscii (std::string prefix, NetDeviceContainer d) | 
| Enable ascii trace output on each device in the container which is of the appropriate type.  More... | |
| void | EnableAscii (Ptr< OutputStreamWrapper > stream, NetDeviceContainer d) | 
| Enable ascii trace output on each device in the container which is of the appropriate type.  More... | |
| void | EnableAscii (std::string prefix, NodeContainer n) | 
| Enable ascii trace output on each device (which is of the appropriate type) in the nodes provided in the container.  More... | |
| void | EnableAscii (Ptr< OutputStreamWrapper > stream, NodeContainer n) | 
| Enable ascii trace output on each device (which is of the appropriate type) in the nodes provided in the container.  More... | |
| void | EnableAscii (std::string prefix, uint32_t nodeid, uint32_t deviceid, bool explicitFilename) | 
| Enable ascii trace output on the device specified by a global node-id (of a previously created node) and associated device-id.  More... | |
| void | EnableAscii (Ptr< OutputStreamWrapper > stream, uint32_t nodeid, uint32_t deviceid) | 
| Enable ascii trace output on the device specified by a global node-id (of a previously created node) and associated device-id.  More... | |
| void | EnableAsciiAll (std::string prefix) | 
| Enable ascii trace output on each device (which is of the appropriate type) in the set of all nodes created in the simulation.  More... | |
| void | EnableAsciiAll (Ptr< OutputStreamWrapper > stream) | 
| Enable ascii trace output on each device (which is of the appropriate type) in the set of all nodes created in the simulation.  More... | |
| Protected Member Functions | |
| virtual Ptr< NetDevice > | InstallPriv (Ptr< Node > node) const | 
| This method creates an ns3::FdNetDevice and associates it to a node.  More... | |
| Private Member Functions | |
| virtual void | EnableAsciiInternal (Ptr< OutputStreamWrapper > stream, std::string prefix, Ptr< NetDevice > nd, bool explicitFilename) | 
| Enable ascii trace output on the indicated net device.  More... | |
| virtual void | EnablePcapInternal (std::string prefix, Ptr< NetDevice > nd, bool promiscuous, bool explicitFilename) | 
| Enable pcap output on the indicated net device.  More... | |
| Private Attributes | |
| ObjectFactory | m_deviceFactory | 
| factory for the NetDevices  More... | |
build a set of FdNetDevice objects Normally we eschew multiple inheritance, however, the classes PcapUserHelperForDevice and AsciiTraceUserHelperForDevice are treated as "mixins".
A mixin is a self-contained class that encapsulates a general attribute or a set of functionality that may be of interest to many other classes.
Definition at line 45 of file fd-net-device-helper.h.
| ns3::FdNetDeviceHelper::FdNetDeviceHelper | ( | ) | 
Construct a FdNetDeviceHelper.
Definition at line 40 of file fd-net-device-helper.cc.
References m_deviceFactory, and ns3::ObjectFactory::SetTypeId().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | inlinevirtual | 
Definition at line 53 of file fd-net-device-helper.h.
| 
 | privatevirtual | 
Enable ascii trace output on the indicated net device.
NetDevice-specific implementation mechanism for hooking the trace and writing to the trace file.
| stream | The output stream object to use when logging ascii traces. | 
| prefix | Filename prefix to use for ascii trace files. | 
| nd | Net device for which you want to enable tracing. | 
| explicitFilename | Treat the prefix as an explicit filename if true | 
Implements ns3::AsciiTraceHelperForDevice.
Definition at line 97 of file fd-net-device-helper.cc.
References ns3::Config::Connect(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::AsciiTraceHelper::DefaultReceiveSinkWithContext(), ns3::Packet::EnablePrinting(), ns3::AsciiTraceHelper::GetFilenameFromDevice(), ns3::AsciiTraceHelper::HookDefaultReceiveSinkWithoutContext(), ns3::MakeBoundCallback(), and NS_LOG_INFO.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privatevirtual | 
Enable pcap output on the indicated net device.
NetDevice-specific implementation mechanism for hooking the trace and writing to the trace file.
| prefix | Filename prefix to use for pcap files. | 
| nd | Net device for which you want to enable tracing. | 
| promiscuous | If true capture all possible packets available at the device. | 
| explicitFilename | Treat the prefix as an explicit filename if true | 
Implements ns3::PcapHelperForDevice.
Definition at line 59 of file fd-net-device-helper.cc.
References ns3::PcapHelper::CreateFile(), ns3::PcapHelper::DLT_EN10MB, create-module::file, ns3::PcapHelper::GetFilenameFromDevice(), ns3::PcapHelper::HookDefaultSink(), and NS_LOG_INFO.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | virtual | 
This method creates a FdNetDevice and associates it to a node.
| node | The node to install the device in | 
Definition at line 176 of file fd-net-device-helper.cc.
References InstallPriv().
Referenced by ns3::EmuEpcHelper::AddEnb(), and ns3::EmuEpcHelper::EmuEpcHelper().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | virtual | 
This method creates a FdNetDevice and associates it to a node.
| name | The name of the node to install the device in | 
Definition at line 182 of file fd-net-device-helper.cc.
References InstallPriv().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | virtual | 
This method creates a FdNetDevice and associates it to a node.
For each Ptr<node> in the provided container: it creates an ns3::FdNetDevice (with the attributes configured by FdNetDeviceHelper::SetDeviceAttribute); adds the device to the node; and attaches the channel to the device.
| c | The NodeContainer holding the nodes to be changed. | 
Definition at line 189 of file fd-net-device-helper.cc.
References ns3::NetDeviceContainer::Add(), ns3::NodeContainer::Begin(), ns3::NodeContainer::End(), and InstallPriv().
 Here is the call graph for this function:
 Here is the call graph for this function:This method creates an ns3::FdNetDevice and associates it to a node.
| node | The node to install the device in | 
Reimplemented in ns3::TapFdNetDeviceHelper, ns3::EmuFdNetDeviceHelper, ns3::DpdkNetDeviceHelper, ns3::PlanetLabFdNetDeviceHelper, and ns3::NetmapNetDeviceHelper.
Definition at line 202 of file fd-net-device-helper.cc.
References ns3::Node::AddDevice(), ns3::Mac48Address::Allocate(), ns3::ObjectFactory::Create(), and m_deviceFactory.
Referenced by Install(), ns3::NetmapNetDeviceHelper::InstallPriv(), ns3::PlanetLabFdNetDeviceHelper::InstallPriv(), ns3::DpdkNetDeviceHelper::InstallPriv(), ns3::EmuFdNetDeviceHelper::InstallPriv(), and ns3::TapFdNetDeviceHelper::InstallPriv().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void ns3::FdNetDeviceHelper::SetAttribute | ( | std::string | n1, | 
| const AttributeValue & | v1 | ||
| ) | 
| n1 | the name of the attribute to set | 
| v1 | the value of the attribute to set | 
Set these attributes on each ns3::FdNetDevice created by FdNetDeviceHelper::Install
Definition at line 52 of file fd-net-device-helper.cc.
References m_deviceFactory, NS_LOG_FUNCTION, and ns3::ObjectFactory::Set().
 Here is the call graph for this function:
 Here is the call graph for this function:| void ns3::FdNetDeviceHelper::SetTypeId | ( | std::string | type | ) | 
Set the TypeId of the Objects to be created by this helper.
| [in] | tid | The TypeId of the object to instantiate. | 
Definition at line 46 of file fd-net-device-helper.cc.
References m_deviceFactory, and ns3::ObjectFactory::SetTypeId().
Referenced by ns3::DpdkNetDeviceHelper::DpdkNetDeviceHelper(), and ns3::NetmapNetDeviceHelper::NetmapNetDeviceHelper().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
factory for the NetDevices
Definition at line 140 of file fd-net-device-helper.h.
Referenced by FdNetDeviceHelper(), InstallPriv(), SetAttribute(), and SetTypeId().