[Ns-developers] Extending WifiHelper object
Mirko Banchi
mk.banchi at gmail.com
Tue Mar 24 12:54:37 PDT 2009
Hi Mathieu,
As you told me, i'm extending WifiHelper class in order to make easy
setting of Msdu aggregators and also Edca parameters (minCw, maxCW ...)
for each Qos station's queue. The discussed solution is the following:
class WifiMacHelper
{
public:
virtual Ptr<WifiMac> Create (void) const = 0;
};
class NqosWifiMacHelper : public WifiMacHelper
{
virtual Ptr<WifiMac> Create (void) const;
void SetType (std::string,
std::string n0, const AttributeValue &v0,
...);
void SetDcaParameter (?);
};
class QosWifiMacHelper : public WifiMacHelper
{
virtual Ptr<WifiMac> Create (void) const;
void SetType (std::string,
std::string n0, const AttributeValue &v0,
...);
void SetMsduAggregatorForAc (AccessClass ac, std::string type,
std::string n0, const AttributeValue &v0
,...);
void SetEdcaParameterForAc (?);
};
class WifiHelper
{
...
NetDeviceContainer Install (const WifiPhyHelper &phy,
const WifiMacHelper &mac,
NodeContainer c) const;
};
As you can see the main problems are with parameter list of
NqosWifiMacHelper::SetDcaParameter
QosWifiMacHelper::SetEdcaParameter
Which kind of parameter we should use?
Even if ns3::EdcaTxopN has attributes like "MinCw", "MaxCw" etc, when
SetEdcaParameter is called i haven't in hand the pointer to the specific
queue yet.
The problem is how to map a value to a specific attribute
Thank you
Mirko
--
Mirko Banchi
e-mail: mk.banchi at gmail.com
e-mail: mk.banchi at virgilio.it
id-jabber: mk.banchi at jabber.org
id-msn: mb11684 at hotmail.com
PGP key fingerprint:
308F BFB1 4E67 2522 C88E
DC69 7631 52ED 32A5 6456
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3410 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20090324/a3ce610a/smime.bin
More information about the Ns-developers
mailing list