src/devices/mesh/mesh-wifi-helper.h
changeset 4855 0b5980b04249
parent 4852 123dc54d734e
child 4856 b7241df728a3
--- a/src/devices/mesh/mesh-wifi-helper.h	Thu Mar 19 11:49:23 2009 +0300
+++ b/src/devices/mesh/mesh-wifi-helper.h	Thu Mar 19 12:46:56 2009 +0300
@@ -21,16 +21,10 @@
 
 #ifndef _MESHWIFIHELPER_H
 #define _MESHWIFIHELPER_H
-
-#include "ns3/wifi-net-device.h"
-#include "ns3/mesh-point-device.h"
-#include "ns3/mesh-wifi-mac.h"
-#include "ns3/wifi-channel.h"
-#include "ns3/mesh-wifi-peer-manager.h"
-#include "ns3/wifi-helper.h"
+#include "wifi-helper.h"
 
 namespace ns3 {
-  
+
 class WifiChannel;
 
 /** 
@@ -39,88 +33,62 @@
  */
 class MeshWifiHelper
 {
-public:
-  MeshWifiHelper ();
-  virtual ~MeshWifiHelper ();
+  public:
+    MeshWifiHelper ();
+    virtual ~MeshWifiHelper ();
 
-  /**
-   * \param type the type of peer manager to use.
-   * \param n0 the name of the attribute to set in the peer manager.
-   * \param v0 the value of the attribute to set in the peer manager.
-   * etc.
-   *
-   */
-  void SetRemoteStationManager (std::string type,
-                                std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
-                                std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
-                                std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
-                                std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
-                                std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
-                                std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
-                                std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
-                                std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue ());
-
-  /**
-   * \param type the type of ns3::WifiMac to create.
-   * \param n0 the name of the attribute to set
-   * \param v0 the value of the attribute to set
-   *
-   * All the attributes specified in this method should exist
-   * in the requested mac.
-   */
-  void SetMac (std::string type,
-               std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
-               std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
-               std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
-               std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
-               std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
-               std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
-               std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
-               std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue ());
+    /**
+     * \param type the type of peer manager to use.
+     * \param n0 the name of the attribute to set in the peer manager.
+     * \param v0 the value of the attribute to set in the peer manager.
+     * etc.
+     *
+     */
+    void SetRemoteStationManager (std::string type,
+        std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
+        std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
+        std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
+        std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
+        std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
+        std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
+        std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
+        std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue ()
+        );
 
-  void SetPeerLinkManager (std::string type,
-                           std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
-                           std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
-                           std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
-                           std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
-                           std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
-                           std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
-                           std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
-                           std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue (),
-                           std::string n8 = "", const AttributeValue &v8 = EmptyAttributeValue (),
-                           std::string n9 = "", const AttributeValue &v9 = EmptyAttributeValue ());
-  void SetL2RoutingProtocol (std::string type,
-                            std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
-                            std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
-                            std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
-                            std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
-                            std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
-                            std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
-                            std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
-                            std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue (),
-                            std::string n8 = "", const AttributeValue &v8 = EmptyAttributeValue (),
-                            std::string n9 = "", const AttributeValue &v9 = EmptyAttributeValue ());
-
-  void SetL2RoutingNetDevice (std::string type,
-                             std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
-                             std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
-                             std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
-                             std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
-                             std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
-                             std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
-                             std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
-                             std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue (),
-                             std::string n8 = "", const AttributeValue &v8 = EmptyAttributeValue (),
-                             std::string n9 = "", const AttributeValue &v9 = EmptyAttributeValue ());
-  NetDeviceContainer Install (const WifiPhyHelper &phyHelper, NodeContainer c, uint8_t numOfPorts) const;
-  NetDeviceContainer Install (const WifiPhyHelper &phy, Ptr<Node> node, uint8_t numOfPorts) const;
-private:
-  ObjectFactory m_stationManager;
-  ObjectFactory m_meshMac;
-  ObjectFactory m_peerManager;
-  //L2routing:
-  ObjectFactory m_deviceFactory;
-  ObjectFactory m_routingProtocol;
+    /**
+     * \param type the type of ns3::WifiMac to create.
+     * \param n0 the name of the attribute to set
+     * \param v0 the value of the attribute to set
+     *
+     * All the attributes specified in this method should exist
+     * in the requested mac.
+     */
+    void SetMac (std::string type,
+        std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
+        std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
+        std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
+        std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
+        std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
+        std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
+        std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
+        std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue ()
+        );
+    void SetL2RoutingNetDevice (std::string type,
+        std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
+        std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
+        std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
+        std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
+        std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
+        std::string n5 = "", const AttributeValue &v5 = EmptyAttributeValue (),
+        std::string n6 = "", const AttributeValue &v6 = EmptyAttributeValue (),
+        std::string n7 = "", const AttributeValue &v7 = EmptyAttributeValue (),
+        );
+    NetDeviceContainer Install (const WifiPhyHelper &phyHelper, NodeContainer c) const;
+    NetDeviceContainer Install (const WifiPhyHelper &phy, Ptr<Node> node) const;
+  private:
+    ObjectFactory m_stationManager;
+    ObjectFactory m_meshMac;
+    ObjectFactory m_deviceFactory;
 };
 }//namespace ns3
 #endif /* _MESHWIFIHELPER_H */