Package avrora.sim.platform

Examples of avrora.sim.platform.MicaZ$Factory


  private static final Color BLUE = new Color(0, 0, 255);
  private static final Color GREEN = new Color(0, 255, 0);
  private static final Color RED = new Color(255, 0, 0);

  public MicaZLED(Mote mote) {
    MicaZ micaZ = ((MicaZMote) mote).getMicaZ();

    avrora.sim.platform.LED.LEDGroup leds =
      (avrora.sim.platform.LED.LEDGroup) micaZ.getDevice("leds");

    leds.leds[0].getFSM().insertProbe(new FiniteStateMachine.Probe() {
      public void fireAfterTransition(int old, int newstate) {
        redOn = newstate > 0;
        setChanged();
View Full Code Here


  MicaZMote mote;
 
  public MicaSerial(Mote micaZMote) {
    mote = (MicaZMote) micaZMote;
    MicaZ micaZ = mote.getMicaZ();
    /* this should go into some other piece of code for serial data */
    AtmelMicrocontroller mcu = (AtmelMicrocontroller) micaZ.getMicrocontroller();
    avrora.sim.mcu.USART usart = (avrora.sim.mcu.USART) mcu.getDevice("usart0");
    if (usart != null) {
      usart.connectnew avrora.sim.mcu.USART.USARTDevice() {
        public avrora.sim.mcu.USART.Frame transmitFrame() {
          return null;
View Full Code Here

  Mote mote;
 
  public MicaSerial(MicaZMote micaZMote) {
    mote = micaZMote;
    MicaZ micaZ = micaZMote.getMicaZ();
    /* this should go into some other piece of code for serial data */
    AtmelMicrocontroller mcu = (AtmelMicrocontroller) micaZ.getMicrocontroller();
    avrora.sim.mcu.USART usart = (avrora.sim.mcu.USART) mcu.getDevice("usart0");
    if (usart != null) {
      usart.connectnew avrora.sim.mcu.USART.USARTDevice() {
        public avrora.sim.mcu.USART.Frame transmitFrame() {
          return null;
View Full Code Here

  private static final Color BLUE = new Color(0, 0, 255);
  private static final Color GREEN = new Color(0, 255, 0);
  private static final Color RED = new Color(255, 0, 0);

  public MicaZLED(Mote mote) {
    MicaZ micaZ = ((MicaZMote) mote).getMicaZ();

    avrora.sim.platform.LED.LEDGroup leds =
      (avrora.sim.platform.LED.LEDGroup) micaZ.getDevice("leds");

    leds.leds[0].getFSM().insertProbe(new FiniteStateMachine.Probe() {
      public void fireAfterTransition(int old, int newstate) {
        redOn = newstate > 0;
        setChanged();
View Full Code Here

  MicaZMote mote;
 
  public MicaSerial(Mote micaZMote) {
    mote = (MicaZMote) micaZMote;
    MicaZ micaZ = mote.getMicaZ();
    /* this should go into some other piece of code for serial data */
    AtmelMicrocontroller mcu = (AtmelMicrocontroller) micaZ.getMicrocontroller();
    avrora.sim.mcu.USART usart = (avrora.sim.mcu.USART) mcu.getDevice("usart0");
    if (usart != null) {
      usart.connectnew avrora.sim.mcu.USART.USARTDevice() {
        public avrora.sim.mcu.USART.Frame transmitFrame() {
          return null;
View Full Code Here

TOP

Related Classes of avrora.sim.platform.MicaZ$Factory

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.