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.
29 lines
580 B
29 lines
580 B
/**
|
|
* 可调节温度接口
|
|
* 定义了设备的温度调节功能
|
|
*/
|
|
public interface TemperatureAdjustable {
|
|
/**
|
|
* 增加温度
|
|
* @param degree 增加的度数
|
|
*/
|
|
void increaseTemperature(int degree);
|
|
|
|
/**
|
|
* 降低温度
|
|
* @param degree 降低的度数
|
|
*/
|
|
void decreaseTemperature(int degree);
|
|
|
|
/**
|
|
* 设置温度
|
|
* @param temperature 目标温度
|
|
*/
|
|
void setTemperature(int temperature);
|
|
|
|
/**
|
|
* 获取当前温度
|
|
* @return 当前温度
|
|
*/
|
|
int getCurrentTemperature();
|
|
} |