This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
/**
* 灯光控制接口
* 定义了所有灯光设备必须实现的功能
*/
public interface LightControl {
* 打开灯光
void turnOnLight();
* 关闭灯光
void turnOffLight();
* 设置灯光亮度
* @param brightness 亮度值(0-100)
void setBrightness(int brightness);
* 设置灯光颜色
* @param color 颜色值(如"white", "red", "blue"等)
void setColor(String color);
* 检查灯光是否开启
* @return 是否开启
boolean isLightOn();
}