Package se.sics.cooja.radiomediums

Examples of se.sics.cooja.radiomediums.DirectedGraphMedium


    Radio selectedRadio = selectedMote.getInterfaces().getRadio();

    FontMetrics fm = g.getFontMetrics();
    g.setColor(Color.BLACK);

    DirectedGraphMedium radioMedium = (DirectedGraphMedium) simulation.getRadioMedium();

    /* Print transmission success probabilities */
    DestinationRadio[] dests = radioMedium.getPotentialDestinations(selectedRadio);
    if (dests == null || dests.length == 0) {
      String msg = "No edges";
      int msgWidth = fm.stringWidth(msg);
      g.setColor(Color.BLACK);
      g.drawString(msg, x - msgWidth/2, y + 2*Visualizer.MOTE_RADIUS + 3);
View Full Code Here

TOP

Related Classes of se.sics.cooja.radiomediums.DirectedGraphMedium

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.