[Ns-bugs] [Bug 962] list of paths to reach objects contains bogus entries
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Mon Nov 28 15:08:06 PST 2011
https://www.nsnam.org/bugzilla/show_bug.cgi?id=962
--- Comment #23 from Nicola Baldo <nbaldo at cttc.es> 2011-11-28 18:08:04 EST ---
Created attachment 1277
--> https://www.nsnam.org/bugzilla/attachment.cgi?id=1277
tentative patch: new GenericPhy Object aggregated to HalfDuplexIdealPhy
Here is a tentative patch. It works this way:
1) a new GenericPhy Object is introduced
2) NetDevice objects such as AlohaNoackNetDevice and NonCommunicatingNetDevice
have an attribute of type GenericPhy
3) PHY objects such as HalfDuplexIdealPhy, WaveformGenerator and
SpectrumAnalyzer are aggregated to an instance of GenericPhy, so that this
aggregated instance can be used as the attribute value for point 2) above
I don't like much this patch because:
- the GenericPhy object is not really used for anything beyond defining a type
other than Object that does not fool the automatic attribute path generation
- none of WaveformGenerator, SpectrumAnalyzer and NonCommunicatingNetDevice
actually supports the GenericPhy interface (the PHY<-->MAC API) hence the new
object is misnomed
-the attribute path to reach the PHY is uglier (see for instance the diff in
spectrum-ideal-phy-test.cc)
--
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Ns-bugs
mailing list