Package avrora.sim.radio

Examples of avrora.sim.radio.Radio


        public void fire() {
            meets++;
            long globalTime = meets * bytePeriod;
            Iterator it = radios.iterator();
            while (it.hasNext()) {
                Radio r = (Radio)it.next();
                LocalAirImpl pr = getLocalAir(r);
                pr.advanceChannel();
            }
        }
View Full Code Here


                    Terminal.print(itstr);
                    Terminal.printYellow("energy limit exceeded: "+ totalEnergy+" joules");
                    Terminal.nextln();

                    //remove radio
                    Radio radio = (Radio)platform.getDevice("radio");
                    RadioAir air = radio.getAir();
                    if ( air != null )
                        air.removeRadio(radio);
                    //stop loop
                    simulator.stop();
                }
View Full Code Here

        boolean showPreamble;

        Mon(Simulator s) {
            simulator = s;
            platform = simulator.getMicrocontroller().getPlatform();
            Radio radio = (Radio)platform.getDevice("radio");
            radio.insertProbe(this);
            packetEnd = new PacketEndEvent();
            printer = simulator.getPrinter("monitor.packet");
            printer.enabled = true;
            showPackets = PACKETS.get();
            discardFirst = DISCARD.get();
View Full Code Here

TOP

Related Classes of avrora.sim.radio.Radio

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.