Package org.contikios.cooja.interfaces

Examples of org.contikios.cooja.interfaces.IPAddress


  public void paintBeforeMotes(Graphics g) {
  }

  private static String getMoteString(Mote mote) {
    IPAddress ipAddr = mote.getInterfaces().getIPAddress();
    if (ipAddr != null && ipAddr.getIPString() != null) {
      return ipAddr.getIPString();
    }

    RimeAddress rimeAddr = mote.getInterfaces().getRimeAddress();
    if (rimeAddr != null) {
      return rimeAddr.getAddressString();
View Full Code Here


  public void paintBeforeMotes(Graphics g) {
  }

  private static String getMoteString(Mote mote) {
    IPAddress ipAddr = mote.getInterfaces().getIPAddress();
    if ((ipAddr != null) && (ipAddr.hasIP())) {
      if (ipAddr.getLocalIP() == null) {
        return "";
      }
      return ipAddr.getLocalIP().toString();
    }

    RimeAddress rimeAddr = mote.getInterfaces().getRimeAddress();
    if (rimeAddr != null) {
      return rimeAddr.getAddressString();
View Full Code Here

TOP

Related Classes of org.contikios.cooja.interfaces.IPAddress

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.