[ns] wireless-phy.cc

Cheng Li licheng@sjtu.edu.cn
Mon, 08 Oct 2001 23:38:03 +0800


Hello all,

I have three questions about the class WirelessPhy:

(1) Around line 202 and 355 in wireless-phy.cc are the following lines:

double start_time = max(channel_idle_time_, NOW);
double end_time = max(channel_idle_time_, NOW+txtime);

Should the end_time be start_time+txtime ?

(2) Around line 230 in wireless-phy.cc are the following lines:

double begin_adjust_time = min(channel_idle_time_, temp);
double finish_adjust_time = min(channel_idle_time_, NOW+txtime);
double gap_adjust_time = finish_adjust_time - begin_adjust_time;

What's the mean of these line? Does it mean the WirelessPhy can tx and 
rx simultaneously?

(3) In wireless-phy.cc:

What are the function of WirelessPhy::node_on() and  
WirelessPhy::node_off() ? It seems that they do nothing important.

Any advices are welcome. Thanx in advance.

danaus