Package srsim.sensors

Examples of srsim.sensors.LightSensor


    double targetBrightness = 6000.0D;
    Simulation simulation = new Simulation(new SystemTimeTimeSource());
    simulation.setResolution(0);
    Room room = new Room();
    AbstractController controller = new LightingController();
    ISensor sensor = new LightSensor();
    IActuator[] lights = new IActuator[10];
    simulation.addRoom(room);
    simulation.getContext().setBrightness(5999.0D);
    room.getLocalContext().setPreference("targetBrightness",
        String.valueOf(targetBrightness));
View Full Code Here

TOP

Related Classes of srsim.sensors.LightSensor

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.