thermostatcontroller.java

来自「这是一个以JAVA编写的程序,本人还没有试过,是一个简单的温度控制系统」· Java 代码 · 共 53 行

JAVA
53
字号
package net.sf.dz.device.model;/** * The virtual thermostat controller. * * <p> * * It is an interface to allow the adapters to be implemented - in * particular, for remote access. * * @author Copyright &copy; <a href="mailto:vt@freehold.crocodile.org">Vadim Tkachenko</a> 2001-2002 * @version $Id: ThermostatController.java,v 1.4 2003/12/28 05:37:19 vtt Exp $ */public interface ThermostatController  {    /**     * Enable or disable this thermostat.     *     * If the thermostat is disabled, the zone it controls is considered     * shut off - it will always issue a "happy" signal. However, it will     * participate in excessive pressure relief, but this has nothing to do     * with the thermostat per se - it is controlled by the damper     * controller.     *     * @param enabled Enabled state. <code>false</code> means the zone     * controlled by this thermostat is shut off.     */    public void setOn(boolean enabled);        /**     * Put this thermostat on hold.     *     * If the thermostat is on hold, the scheduler will not change the     * setpoint for it when the new period starts. Actually, this is rather     * an informative - the scheduler will make the decision, however,     * logically, it belongs to the thermostat controller, so it was placed     * here.     *     * @param hold Hold state. <code>true</code> means the thermostat is on     * hold.     */    public void setHold(boolean hold);        /**     * Make this thermostat voting or non-voting.     *     * If the thermostat is not voting, it will not cause the HVAC unit to     * be switched on. However, the HVAC unit will not be shut off until     * this zone is satisfied.     */    public void setVoting(boolean voting);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?