Package srsim.actuators

Examples of srsim.actuators.LightingActuator.enable()


      if (light.getState() == IActuator.ACTIVE
          && light.getBrightness() < light.getMaxBrightness()) {
        light.turnUp();
        notifyListeners("light " + light.getId() + " turned up");
      } else if (light.getState() == IActuator.IDLE) {
        light.enable();
        notifyListeners("light " + light.getId() + " enabled");
      }
    }
  }
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.