OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2009 MIRKO BANCHI | 3 * Copyright (c) 2009 MIRKO BANCHI |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 * \param n5 the name of the attribute to set | 65 * \param n5 the name of the attribute to set |
66 * \param v5 the value of the attribute to set | 66 * \param v5 the value of the attribute to set |
67 * \param n6 the name of the attribute to set | 67 * \param n6 the name of the attribute to set |
68 * \param v6 the value of the attribute to set | 68 * \param v6 the value of the attribute to set |
69 * \param n7 the name of the attribute to set | 69 * \param n7 the name of the attribute to set |
70 * \param v7 the value of the attribute to set | 70 * \param v7 the value of the attribute to set |
71 * | 71 * |
72 * All the attributes specified in this method should exist | 72 * All the attributes specified in this method should exist |
73 * in the requested mac. | 73 * in the requested mac. |
74 */ | 74 */ |
75 void SetType (std::string type, | 75 virtual void SetType (std::string type, |
76 std::string n0 = "", const AttributeValue &v0 = EmptyAttributeVa
lue (), | 76 std::string n0 = "", const AttributeValue &v0 = EmptyAttributeVa
lue (), |
77 std::string n1 = "", const AttributeValue &v1 = EmptyAttributeVa
lue (), | 77 std::string n1 = "", const AttributeValue &v1 = EmptyAttributeVa
lue (), |
78 std::string n2 = "", const AttributeValue &v2 = EmptyAttributeVa
lue (), | 78 std::string n2 = "", const AttributeValue &v2 = EmptyAttributeVa
lue (), |
79 std::string n3 = "", const AttributeValue &v3 = EmptyAttributeVa
lue (), | 79 std::string n3 = "", const AttributeValue &v3 = EmptyAttributeVa
lue (), |
80 std::string n4 = "", const AttributeValue &v4 = EmptyAttributeVa
lue (), | 80 std::string n4 = "", const AttributeValue &v4 = EmptyAttributeVa
lue (), |
81 std::string n5 = "", const AttributeValue &v5 = EmptyAttributeVa
lue (), | 81 std::string n5 = "", const AttributeValue &v5 = EmptyAttributeVa
lue (), |
82 std::string n6 = "", const AttributeValue &v6 = EmptyAttributeVa
lue (), | 82 std::string n6 = "", const AttributeValue &v6 = EmptyAttributeVa
lue (), |
83 std::string n7 = "", const AttributeValue &v7 = EmptyAttributeVa
lue ()); | 83 std::string n7 = "", const AttributeValue &v7 = EmptyAttributeVa
lue ()); |
| 84 protected: |
| 85 ObjectFactory m_mac; |
84 private: | 86 private: |
85 /** | 87 /** |
86 * \internal | 88 * \internal |
87 * \returns a newly-created MAC object. | 89 * \returns a newly-created MAC object. |
88 * | 90 * |
89 * This method implements the pure virtual method defined in \ref ns3::WifiMac
Helper. | 91 * This method implements the pure virtual method defined in \ref ns3::WifiMac
Helper. |
90 */ | 92 */ |
91 virtual Ptr<WifiMac> Create (void) const; | 93 virtual Ptr<WifiMac> Create (void) const; |
92 | |
93 ObjectFactory m_mac; | |
94 }; | 94 }; |
95 | 95 |
96 } // namespace ns3 | 96 } // namespace ns3 |
97 | 97 |
98 #endif /* NQOS_WIFI_MAC_HELPER_H */ | 98 #endif /* NQOS_WIFI_MAC_HELPER_H */ |
OLD | NEW |