Hi,

I am noticing something weird. I tried implementing set and get function for
variables like RXThresh_ and Pt_ defined in wireless-phy.cc. These functions
were implemented in ns-mobile.tcl so that I can change these through the
node class. When I try to change the values, I can observe that the call is
happening to the lines of code written in wireless-phy.cc but when I do a
get, the value is not changed. So for instance, I added something like this
inside wireless-phy.cc::

if(strcasecmp(argv[1], "setRXThresh_") == 0) {
            RXThresh_ = atof(argv[2]);
            printf("Set the RXThresh to %.12f\n", RXThresh_);
            return TCL_OK;
 }

I can see the printf statement printed but the effect is not taking place.
Does anyone know what could be happening here?

Thanks,
John

Reply via email to