⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 acdriver.java

📁 这是一个以JAVA编写的程序,本人还没有试过,是一个简单的温度控制系统
💻 JAVA
字号:
package net.sf.dz.device.actuator;import java.io.IOException;import org.freehold.jukebox.conf.Configurable;/** * The actual HVAC unit driver. * * <p> * * The class implementing this interface controls the hardware. No sanity * checks are required, they are provided by {@link * net.sf.dz.device.actuator.impl.AC_Controller A/C controller}. Same goes * for timings - the operations performed by this class may have to be as * slow as it takes, it is irrelevant. * * @author Copyright &copy; <a href="mailto:vt@freehold.crocodile.org">Vadim Tkachenko</a> 2001-2002 * @version $Id: ACDriver.java,v 1.1 2002/05/06 06:19:22 vtt Exp $ */public interface ACDriver extends Configurable {    /**     * Set the unit mode.     *     * @param mode Operating mode. -1 is cooling, 0 is off, 1 is heating.     * Actually, the switch is only between cooling and heating, but     * different units may have different rules (the contact is energized     * only for cooling, or only for heating).     *     * @exception IOException if there was a problem talking to the hardware.     */    public void setMode(int mode) throws IOException;        /**     * Set the unit stage.     *     * FIXME: It is to be determined whether the sign of the stage changes with the mode.     *     * @param stage A/C stage. For single stage units, 0 is off, 1 is on.     * For multistage units, it is 0, 1, 2 and so on.     *     * @exception IOException if there was a problem talking to the hardware.     */    public void setStage(int stage) throws IOException;    /**     * Set the fan speed.     *     * @param speed Fan speed. For single speed fan, 0 is off, 1 is on. For     * variable speed or multispeed fans, 0 is off, 1 is full, anything in     * between defines the actual speed. Since both variable speed and     * multispeed fans have some preset values, it is up to the     * implementation to define the rounding rules.     *     * @exception IOException if there was a problem talking to the hardware.     */    public void setFanSpeed(double speed) throws IOException;}

⌨️ 快捷键说明

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