Package se.sics.cooja

Examples of se.sics.cooja.MoteTimeEvent


    public void receivedPacket(RadioPacket p) {
      /* Ignore */
    }
    public void sentPacket(RadioPacket p) {
      /* Send another packet after a small pause */
      getSimulation().scheduleEvent(new MoteTimeEvent(this, 0) {
        public void execute(long t) {
          /*logger.info("Sending another radio packet on channel: " + radio.getChannel());*/
          radio.startTransmittingPacket(radioPacket, DURATION);
        }
      }, getSimulation().getSimulationTime() + DELAY);
View Full Code Here


        ApplicationRadio.this.notifyObservers();

        /*logger.info("Transmission started");*/

        /* Finish transmission */
        simulation.scheduleEvent(new MoteTimeEvent(mote, 0) {
          public void execute(long t) {
            isTransmitting = false;
            lastEvent = RadioEvent.TRANSMISSION_FINISHED;
            lastEventTime = t;
            ApplicationRadio.this.setChanged();
View Full Code Here

TOP

Related Classes of se.sics.cooja.MoteTimeEvent

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.