Examples of turnDown()


Examples of srsim.actuators.LightingActuator.turnDown()

    Iterator<IActuator> lights = this.lights.iterator();
    while (lights.hasNext() && context.getBrightness() > targetBrightness) {
      LightingActuator light = (LightingActuator) lights.next();
      if (light.getState() == IActuator.ACTIVE
          && light.getBrightness() > light.getMinimumBrightness()) {
        light.turnDown();
        notifyListeners("light " + light.getId() + " turned down");
      } else if (light.getState() == IActuator.ACTIVE) {
        light.disable();
        notifyListeners("light " + light.getId() + " disabled");
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.