Package avrora.sim.platform.sensors

Examples of avrora.sim.platform.sensors.RandomSensorData


        void instantiate(Platform p) {
            try {
                Sensor s = (Sensor)p.getDevice(sensor+"-sensor");
                if ( s == null )
                    Avrora.userError("Sensor device does not exist", sensor);
                if ( ".".equals(fname) ) s.setSensorData(new RandomSensorData(getRandom()));
                else s.setSensorData(new ReplaySensorData(p.getMicrocontroller(), fname));
            } catch ( IOException e) {
                throw Avrora.unexpected(e);
            }
        }
View Full Code Here


    void instantiate(Platform p) {
      try {
        Sensor s = (Sensor)p.getDevice(sensor+"-sensor");
        if ( s == null )
          Avrora.userError("Sensor device does not exist", sensor);
        if ( ".".equals(fname) ) s.setSensorData(new RandomSensorData(getRandom()));
        else s.setSensorData(new ReplaySensorData(p.getMicrocontroller(), fname));
      } catch ( IOException e) {
        throw Avrora.unexpected(e);
      }
    }
View Full Code Here

TOP

Related Classes of avrora.sim.platform.sensors.RandomSensorData

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.