Package se.sics.cooja.motes

Examples of se.sics.cooja.motes.AbstractEmulatedMote


    smallPane.add(BorderLayout.EAST, button);
    mainPane.add(smallPane);
   
    /* CPU frequency */
    if (mote instanceof AbstractEmulatedMote) {
      AbstractEmulatedMote emulatedMote = (AbstractEmulatedMote) mote;
      smallPane = new JPanel(new BorderLayout());
      label = new JLabel("CPU frequency");
      label.setPreferredSize(size);
      smallPane.add(BorderLayout.WEST, label);
      if (emulatedMote.getCPUFrequency() < 0) {
        label = new JLabel("[unknown]");
      } else {
        label = new JLabel(emulatedMote.getCPUFrequency() + " Hz");
      }
      label.setPreferredSize(size);
      smallPane.add(BorderLayout.EAST, label);
      mainPane.add(smallPane);
    }
View Full Code Here

TOP

Related Classes of se.sics.cooja.motes.AbstractEmulatedMote

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.