src/helper/wifi-helper.cc
changeset 2965 4b28e9740e3b
parent 2887 9a637e6daee0
child 2997 caf9d364c6fc
equal deleted inserted replaced
2964:4e8cb1577144 2965:4b28e9740e3b
    76   m_mac.SetTypeId ("ns3::AdhocWifiMac");
    76   m_mac.SetTypeId ("ns3::AdhocWifiMac");
    77 }
    77 }
    78 
    78 
    79 void 
    79 void 
    80 WifiHelper::SetRemoteStationManager (std::string type,
    80 WifiHelper::SetRemoteStationManager (std::string type,
    81 				     std::string n0, Attribute v0,
    81 				     std::string n0, const AttributeValue &v0,
    82 				     std::string n1, Attribute v1,
    82 				     std::string n1, const AttributeValue &v1,
    83 				     std::string n2, Attribute v2,
    83 				     std::string n2, const AttributeValue &v2,
    84 				     std::string n3, Attribute v3,
    84 				     std::string n3, const AttributeValue &v3,
    85 				     std::string n4, Attribute v4,
    85 				     std::string n4, const AttributeValue &v4,
    86 				     std::string n5, Attribute v5,
    86 				     std::string n5, const AttributeValue &v5,
    87 				     std::string n6, Attribute v6,
    87 				     std::string n6, const AttributeValue &v6,
    88 				     std::string n7, Attribute v7)
    88 				     std::string n7, const AttributeValue &v7)
    89 {
    89 {
    90   m_stationManager = ObjectFactory ();
    90   m_stationManager = ObjectFactory ();
    91   m_stationManager.SetTypeId (type);
    91   m_stationManager.SetTypeId (type);
    92   m_stationManager.Set (n0, v0);
    92   m_stationManager.Set (n0, v0);
    93   m_stationManager.Set (n1, v1);
    93   m_stationManager.Set (n1, v1);
    99   m_stationManager.Set (n7, v7);
    99   m_stationManager.Set (n7, v7);
   100 }
   100 }
   101 
   101 
   102 void 
   102 void 
   103 WifiHelper::SetMac (std::string type,
   103 WifiHelper::SetMac (std::string type,
   104 		    std::string n0, Attribute v0,
   104 		    std::string n0, const AttributeValue &v0,
   105 		    std::string n1, Attribute v1,
   105 		    std::string n1, const AttributeValue &v1,
   106 		    std::string n2, Attribute v2,
   106 		    std::string n2, const AttributeValue &v2,
   107 		    std::string n3, Attribute v3,
   107 		    std::string n3, const AttributeValue &v3,
   108 		    std::string n4, Attribute v4,
   108 		    std::string n4, const AttributeValue &v4,
   109 		    std::string n5, Attribute v5,
   109 		    std::string n5, const AttributeValue &v5,
   110 		    std::string n6, Attribute v6,
   110 		    std::string n6, const AttributeValue &v6,
   111 		    std::string n7, Attribute v7)
   111 		    std::string n7, const AttributeValue &v7)
   112 {
   112 {
   113   m_mac = ObjectFactory ();
   113   m_mac = ObjectFactory ();
   114   m_mac.SetTypeId (type);
   114   m_mac.SetTypeId (type);
   115   m_mac.Set (n0, v0);
   115   m_mac.Set (n0, v0);
   116   m_mac.Set (n1, v1);
   116   m_mac.Set (n1, v1);
   122   m_mac.Set (n7, v7);
   122   m_mac.Set (n7, v7);
   123 }
   123 }
   124 
   124 
   125 void 
   125 void 
   126 WifiHelper::SetPhy (std::string type,
   126 WifiHelper::SetPhy (std::string type,
   127 		    std::string n0, Attribute v0,
   127 		    std::string n0, const AttributeValue &v0,
   128 		    std::string n1, Attribute v1,
   128 		    std::string n1, const AttributeValue &v1,
   129 		    std::string n2, Attribute v2,
   129 		    std::string n2, const AttributeValue &v2,
   130 		    std::string n3, Attribute v3,
   130 		    std::string n3, const AttributeValue &v3,
   131 		    std::string n4, Attribute v4,
   131 		    std::string n4, const AttributeValue &v4,
   132 		    std::string n5, Attribute v5,
   132 		    std::string n5, const AttributeValue &v5,
   133 		    std::string n6, Attribute v6,
   133 		    std::string n6, const AttributeValue &v6,
   134 		    std::string n7, Attribute v7)
   134 		    std::string n7, const AttributeValue &v7)
   135 {
   135 {
   136   m_phy = ObjectFactory ();
   136   m_phy = ObjectFactory ();
   137   m_phy.SetTypeId (type);
   137   m_phy.SetTypeId (type);
   138   m_phy.Set (n0, v0);
   138   m_phy.Set (n0, v0);
   139   m_phy.Set (n1, v1);
   139   m_phy.Set (n1, v1);