Package srsim.actuators

Examples of srsim.actuators.LightingActuator.disable()


  private void disableLights() throws SimulationContextException {
    Iterator<IActuator> lights = this.lights.iterator();
    while (lights.hasNext()) {
      LightingActuator light = (LightingActuator) lights.next();
      if (light.getState() == IActuator.ACTIVE) {
        light.disable();
        notifyListeners("light " + light.getId() + " disabled");
      }
    }
  }
View Full Code Here


      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.