add WifiHelper::Install (Ptr<Node>) method per craig's comment.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Mon, 24 Nov 2008 06:45:13 +0100
changeset 3915 c798f3d5cb2e
parent 3914 18ac5bec5c49
child 3916 a1e72a0595a6
add WifiHelper::Install (Ptr<Node>) method per craig's comment.
bindings/python/ns3_module_helper.py
src/helper/wifi-helper.cc
src/helper/wifi-helper.h
--- a/bindings/python/ns3_module_helper.py	Mon Nov 24 06:36:05 2008 +0100
+++ b/bindings/python/ns3_module_helper.py	Mon Nov 24 06:45:13 2008 +0100
@@ -857,6 +857,11 @@
                    'ns3::NetDeviceContainer', 
                    [param('ns3::WifiPhyHelper const &', 'phy'), param('ns3::NodeContainer', 'c')], 
                    is_const=True)
+    ## wifi-helper.h: ns3::NetDeviceContainer ns3::WifiHelper::Install(ns3::WifiPhyHelper const & phy, ns3::Ptr<ns3::Node> node) const [member function]
+    cls.add_method('Install', 
+                   'ns3::NetDeviceContainer', 
+                   [param('ns3::WifiPhyHelper const &', 'phy'), param('ns3::Ptr< ns3::Node >', 'node')], 
+                   is_const=True)
     return
 
 def register_Ns3WifiPhyHelper_methods(root_module, cls):
--- a/src/helper/wifi-helper.cc	Mon Nov 24 06:36:05 2008 +0100
+++ b/src/helper/wifi-helper.cc	Mon Nov 24 06:45:13 2008 +0100
@@ -121,6 +121,11 @@
     }
   return devices;
 }
+NetDeviceContainer 
+WifiHelper::Install (const WifiPhyHelper &phy, Ptr<Node> node) const
+{
+  return Install (phy, NodeContainer (node));
+}
 
 
 } // namespace ns3
--- a/src/helper/wifi-helper.h	Mon Nov 24 06:36:05 2008 +0100
+++ b/src/helper/wifi-helper.h	Mon Nov 24 06:45:13 2008 +0100
@@ -118,6 +118,7 @@
                std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue ());
 
   NetDeviceContainer Install (const WifiPhyHelper &phy, NodeContainer c) const;
+  NetDeviceContainer Install (const WifiPhyHelper &phy, Ptr<Node> node) const;
 
 private:
   ObjectFactory m_stationManager;