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

📄 ac.java

📁 这是一个以JAVA编写的程序,本人还没有试过,是一个简单的温度控制系统
💻 JAVA
字号:
package net.sf.dz.device.actuator;import org.freehold.jukebox.conf.Configurable;import net.sf.dz.event.ACListener;/** * The A/C unit abstraction. * * <p> * * This abstraction describes any kind and/or any combination of the * physical A/C units. * * <p> * * For the model simplicity, it is assumed that the single stage A/C, * multistage A/C and combination of more than one A/C unit can be described * in the same way to the external observer. * * @author Copyright &copy; <a href="mailto:vt@freehold.crocodile.org">Vadim Tkachenko</a> 2001-2002 * @version $Id: AC.java,v 1.2 2004/06/28 20:35:48 vtt Exp $ */public interface AC extends Configurable {    /**     * @return true if the A/C is running.     */    boolean isRunning();    /**     * Demand heat transfer.     *     * @param factor Abstract heat/cold demand factor.     *     * <p>     *     * The implementation is supposed to translate this amount into the     * actual capacity demand and then decide what to do: switch on/off,     * increase/decrease production, switch to heating/cooling mode and so     * on.     */    void demand(double factor);    /**     * Get the A/C mode.     *     * @return 1 if heating, 0 if off, -1 if cooling.     */    int getMode();    /**     * Set the A/C mode.     *     * @param mode 1 if heating, 0 if off, -1 if cooling.     *     * @exception IllegalArgumentException if the parameter is neither -1,     * 0, nor 1.     */    void setMode(int mode);    /**     * Add the listener.     *     * @param listener The object to be notified about the state changes.     */    void addListener(ACListener listener);    /**     * Remove the listener.     */    void removeListener(ACListener listener);}

⌨️ 快捷键说明

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