You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
818 B

This file contains ambiguous Unicode characters!

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 CurtainControl {
/**
* 打开窗帘
*/
void openCurtain();
/**
* 关闭窗帘
*/
void closeCurtain();
/**
* 设置窗帘位置
* @param position 位置值0-1000表示完全关闭100表示完全打开
*/
void setCurtainPosition(int position);
/**
* 获取当前窗帘位置
* @return 当前位置值0-100
*/
int getCurtainPosition();
/**
* 检查窗帘是否完全打开
* @return 如果窗帘完全打开则返回true
*/
boolean isFullyOpen();
/**
* 检查窗帘是否完全关闭
* @return 如果窗帘完全关闭则返回true
*/
boolean isFullyClosed();
}