[Ns-developers] Update on ns-3 802.11n

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Wed Sep 1 02:24:48 PDT 2010


On Wed, 2010-09-01 at 10:34 +0200, Jens Mittag wrote:

> No, not really. I was thinking of a central location where the
> configuration of MAC and PHY related parameters is stored. To some
> sense, this is possible with the attribute system, but it is not very
> convenient, since parameters are distributed over a lot of classes. If
> everything is within one class, which in turn is accessed by PHY and MAC
> layer, it would be more convenient imho.

The wifi implementation oscillated for a while between the current code
and something that looked like what you describe. While what you
describe is indeed easier for users, it was a _pain_ to implement and
maintain as every object had to access these variables through an extra
indirection. My experience is that it's much better to move the
variables to where they are used and rely on the attribute system to let
users access them.

Mathie



More information about the Ns-developers mailing list