Package se.sics.cooja.interfaces

Examples of se.sics.cooja.interfaces.DirectionalAntennaRadio$DirectionChangeListener


    }
    public double getTxGain() {
      if (!(getFromRadio() instanceof DirectionalAntennaRadio)) {
        return 0;
      }
      DirectionalAntennaRadio r = (DirectionalAntennaRadio)getFromRadio();
      double txGain = r.getRelativeGain(r.getDirection() + getAngle(), getAngle());
      //logger.debug("tx gain: " + txGain + " (angle " + String.format("%1.1f", Math.toDegrees(r.getDirection() + getAngle())) + ")");
      return txGain;
    }
View Full Code Here


    }
    public double getRxGain() {
      if (!(getToRadio() instanceof DirectionalAntennaRadio)) {
        return 0;
      }
      DirectionalAntennaRadio r = (DirectionalAntennaRadio)getFromRadio();
      double txGain = r.getRelativeGain(r.getDirection() + getAngle() + Math.PI, getDistance());
      //logger.debug("rx gain: " + txGain + " (angle " + String.format("%1.1f", Math.toDegrees(r.getDirection() + getAngle() + Math.PI)) + ")");
      return txGain;
    }
View Full Code Here

                    public double getTxPower() { return selectedRadio.getCurrentOutputPower(); }
                    public double getTxGain() {
                      if (!(selectedRadio instanceof DirectionalAntennaRadio)) {
                        return 0;
                      }
                      DirectionalAntennaRadio r = (DirectionalAntennaRadio)selectedRadio;
                      double txGain = r.getRelativeGain(r.getDirection() + getAngle(), getDistance());
                      //logger.debug("tx gain: " + txGain + " (angle " + String.format("%1.1f", Math.toDegrees(r.getDirection() + getAngle())) + ")");
                      return txGain;
                    }
                    public double getRxGain() {
                      return 0;
View Full Code Here

TOP

Related Classes of se.sics.cooja.interfaces.DirectionalAntennaRadio$DirectionChangeListener

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.