Examples of DirectionalAntennaRadio


Examples of org.contikios.cooja.interfaces.DirectionalAntennaRadio

    }
    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

Examples of org.contikios.cooja.interfaces.DirectionalAntennaRadio

    }
    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

Examples of org.contikios.cooja.interfaces.DirectionalAntennaRadio

                    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

Examples of se.sics.cooja.interfaces.DirectionalAntennaRadio

    }
    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

Examples of se.sics.cooja.interfaces.DirectionalAntennaRadio

    }
    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

Examples of se.sics.cooja.interfaces.DirectionalAntennaRadio

                    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
Copyright © 2018 www.massapi.com. 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.