hide interfered radio events when radio is not on
This commit is contained in:
parent
38e0b7918a
commit
5e251b837a
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: TimeLine.java,v 1.17 2009/11/25 15:39:57 fros4943 Exp $
|
* $Id: TimeLine.java,v 1.18 2009/12/07 11:04:15 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.plugins;
|
package se.sics.cooja.plugins;
|
||||||
|
@ -743,6 +743,9 @@ public class TimeLine extends VisPlugin {
|
||||||
if (moteRadio.isTransmitting()) {
|
if (moteRadio.isTransmitting()) {
|
||||||
ev = new RadioRXTXEvent(
|
ev = new RadioRXTXEvent(
|
||||||
simulation.getSimulationTime(), RXTXRadioEvent.TRANSMITTING);
|
simulation.getSimulationTime(), RXTXRadioEvent.TRANSMITTING);
|
||||||
|
} else if (!moteRadio.isReceiverOn()) {
|
||||||
|
ev = new RadioRXTXEvent(
|
||||||
|
simulation.getSimulationTime(), RXTXRadioEvent.IDLE);
|
||||||
} else if (moteRadio.isInterfered()) {
|
} else if (moteRadio.isInterfered()) {
|
||||||
ev = new RadioRXTXEvent(
|
ev = new RadioRXTXEvent(
|
||||||
simulation.getSimulationTime(), RXTXRadioEvent.INTERFERED);
|
simulation.getSimulationTime(), RXTXRadioEvent.INTERFERED);
|
||||||
|
|
Loading…
Reference in a new issue