Package se.sics.cooja.mspmote

Examples of se.sics.cooja.mspmote.MspMote


  private static Logger logger = Logger.getLogger(SkyFlash.class);

  protected final CoojaM25P80 m24p80;

  public SkyFlash(Mote mote) {
    MspMote mspMote = (MspMote) mote;
    m24p80 = (CoojaM25P80) mspMote.getCPU().getChip(CoojaM25P80.class);
    if (m24p80 == null) {
      throw new IllegalStateException("Mote is not equipped with an M25P80");
    }
  }
View Full Code Here


    private final Leds leds;
    private Color[] onColors;
    private Color[] offColors;

    public MspLED(Mote mote) {
        final MspMote mspMote = (MspMote) mote;
        leds = mspMote.getCPU().getChip(Leds.class);
        if (leds == null) {
            throw new IllegalStateException("Mote is not equipped with leds");
        }
        leds.addStateChangeListener(new StateChangeListener() {
View Full Code Here

    private final Simulation sim;
    private final se.sics.mspsim.chip.Button button;

    public MspButton(Mote mote) {
        final MspMote mspMote = (MspMote) mote;
        sim = mote.getSimulation();
        button = mspMote.getCPU().getChip(se.sics.mspsim.chip.Button.class);
        if (button == null) {
            throw new IllegalStateException("Mote is not equipped with a button");
        }
    }
View Full Code Here

TOP

Related Classes of se.sics.cooja.mspmote.MspMote

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.