#include <ns2ext-wifi-helper.h>
Public Member Functions | |
Ns2ExtWifiPhyHelper () | |
void | SetChannel (Ptr< Ns2ExtWifiChannel > channel) |
void | Set (std::string name, const AttributeValue &v) |
virtual Ptr< WifiPhy > | Create (Ptr< Node > node, Ptr< WifiNetDevice > device) const |
Static Public Member Functions | |
static Ns2ExtWifiPhyHelper | Default (void) |
static void | EnablePcap (std::string filename, uint32_t nodeid, uint32_t deviceid) |
static void | EnablePcap (std::string filename, NetDeviceContainer d) |
static void | EnablePcap (std::string filename, NodeContainer n) |
static void | EnablePcapAll (std::string filename) |
static void | EnableAscii (std::ostream &os, uint32_t nodeid, uint32_t deviceid) |
static void | EnableAscii (std::ostream &os, NetDeviceContainer d) |
static void | EnableAscii (std::ostream &os, NodeContainer n) |
static void | EnableAsciiAll (std::ostream &os) |
Private Attributes | |
ObjectFactory | m_phy |
Ptr< Ns2ExtWifiChannel > | m_channel |
Definition at line 64 of file ns2ext-wifi-helper.h.
ns3::Ns2ExtWifiPhyHelper::Ns2ExtWifiPhyHelper | ( | ) |
Definition at line 140 of file ns2ext-wifi-helper.cc.
Ptr< WifiPhy > ns3::Ns2ExtWifiPhyHelper::Create | ( | Ptr< Node > | node, | |
Ptr< WifiNetDevice > | device | |||
) | const [virtual] |
node | the node on which the PHY object will reside | |
device | the device within which the PHY object will reside |
Subclasses must implement this method to allow the ns3::WifiHelper class to create PHY objects from ns3::WifiHelper::Install.
Implements ns3::WifiPhyHelper.
Definition at line 166 of file ns2ext-wifi-helper.cc.
Ns2ExtWifiPhyHelper ns3::Ns2ExtWifiPhyHelper::Default | ( | void | ) | [static] |
Definition at line 147 of file ns2ext-wifi-helper.cc.
void ns3::Ns2ExtWifiPhyHelper::EnableAscii | ( | std::ostream & | os, | |
NodeContainer | n | |||
) | [static] |
os | output stream | |
n | node container |
Enable ascii output on each device which is of the ns3::WifiNetDevice type and which is located in one of the input node and dump that to the specified stdc++ output stream.
Definition at line 250 of file ns2ext-wifi-helper.cc.
References ns3::NetDeviceContainer::Begin(), EnableAscii(), and ns3::NetDeviceContainer::End().
void ns3::Ns2ExtWifiPhyHelper::EnableAscii | ( | std::ostream & | os, | |
NetDeviceContainer | d | |||
) | [static] |
os | output stream | |
d | device container |
Enable ascii output on each device which is of the ns3::WifiNetDevice type and which is located in the input device container and dump that to the specified stdc++ output stream.
Definition at line 241 of file ns2ext-wifi-helper.cc.
References ns3::AsciiPhyRxOkEvent(), ns3::AsciiPhyTxEvent(), ns3::Config::Connect(), ns3::Packet::EnablePrinting(), and ns3::MakeBoundCallback().
void ns3::Ns2ExtWifiPhyHelper::EnableAscii | ( | std::ostream & | os, | |
uint32_t | nodeid, | |||
uint32_t | deviceid | |||
) | [static] |
os | output stream | |
nodeid | the id of the node to generate ascii output for. | |
deviceid | the id of the device to generate ascii output for. |
Enable ascii output on the specified deviceid within the specified nodeid if it is of type ns3::WifiNetDevice and dump that to the specified stdc++ output stream.
Definition at line 230 of file ns2ext-wifi-helper.cc.
Referenced by EnableAscii().
void ns3::Ns2ExtWifiPhyHelper::EnableAsciiAll | ( | std::ostream & | os | ) | [static] |
os | output stream |
Enable ascii output on each device which is of the ns3::WifiNetDevice type and dump that to the specified stdc++ output stream.
Definition at line 265 of file ns2ext-wifi-helper.cc.
References ns3::NetDeviceContainer::Add().
void ns3::Ns2ExtWifiPhyHelper::EnablePcap | ( | std::string | filename, | |
NodeContainer | n | |||
) | [static] |
filename | filename prefix to use for pcap files. | |
n | container of nodes. |
Enable pcap output on each device which is of the ns3::WifiNetDevice type and which is located in one of the input nodes.
Definition at line 209 of file ns2ext-wifi-helper.cc.
References ns3::NetDeviceContainer::Begin(), EnablePcap(), and ns3::NetDeviceContainer::End().
void ns3::Ns2ExtWifiPhyHelper::EnablePcap | ( | std::string | filename, | |
NetDeviceContainer | d | |||
) | [static] |
filename | filename prefix to use for pcap files. | |
d | container of devices of type ns3::WifiNetDevice |
Enable pcap output on each input device which is of the ns3::WifiNetDevice type.
Definition at line 200 of file ns2ext-wifi-helper.cc.
void ns3::Ns2ExtWifiPhyHelper::EnablePcap | ( | std::string | filename, | |
uint32_t | nodeid, | |||
uint32_t | deviceid | |||
) | [static] |
filename | filename prefix to use for pcap files. | |
nodeid | the id of the node to generate pcap output for. | |
deviceid | the id of the device to generate pcap output for. |
Generate a pcap file which contains the link-level data observed by the specified deviceid within the specified nodeid. The pcap data is stored in the file prefix-nodeid-deviceid.pcap.
This method should be invoked after the network topology has been fully constructed.
Definition at line 176 of file ns2ext-wifi-helper.cc.
References ns3::ObjectFactory::Create(), m_channel, and m_phy.
Referenced by EnablePcap().
void ns3::Ns2ExtWifiPhyHelper::EnablePcapAll | ( | std::string | filename | ) | [static] |
filename | filename prefix to use for pcap files. |
Enable pcap output on each device which is of the ns3::WifiNetDevice type
Definition at line 224 of file ns2ext-wifi-helper.cc.
References ns3::NetDeviceContainer::Add().
void ns3::Ns2ExtWifiPhyHelper::Set | ( | std::string | name, | |
const AttributeValue & | v | |||
) |
Definition at line 159 of file ns2ext-wifi-helper.cc.
void ns3::Ns2ExtWifiPhyHelper::SetChannel | ( | Ptr< Ns2ExtWifiChannel > | channel | ) |
Definition at line 154 of file ns2ext-wifi-helper.cc.
Definition at line 155 of file ns2ext-wifi-helper.h.
Referenced by EnablePcap().
ObjectFactory ns3::Ns2ExtWifiPhyHelper::m_phy [private] |
Definition at line 154 of file ns2ext-wifi-helper.h.
Referenced by EnablePcap().