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.

28 lines
500 B

/**
* 可定时接口
* 定义了设备的定时功能
*/
public interface Timable {
/**
* 设置定时器
* @param minutes 定时分钟数
*/
void setTimer(int minutes);
/**
* 取消定时器
*/
void cancelTimer();
/**
* 检查定时器是否已设置
* @return 是否有定时器在运行
*/
boolean isTimerSet();
/**
* 获取剩余时间
* @return 剩余分钟数
*/
int getRemainingTime();
}