aclistener.java

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

JAVA
56
字号
package net.sf.dz.event;import net.sf.dz.device.actuator.AC;/** * The A/C unit listener. * * @author Copyright &copy; <a href="mailto:vt@freehold.crocodile.org">Vadim Tkachenko</a> 2002 * @version $Id: ACListener.java,v 1.1 2002/05/06 06:19:22 vtt Exp $ */public interface ACListener {    /**     * Receive a notification about the change in the mode of operation.     *     * @param source The A/C unit that produced the notification.     *     * @param mode Currently selected mode. -1 is cooling, 0 is off, 1 is heating.     */    public void modeChanged(AC source, int mode);        /**     * Receive a notification about the change in the running stage of the     * A/C.     *     * Do not mix this with the A/C mode - the stage will change only in the     * direction allowed by the current mode, however, stage 0 means "not     * running now", while mode 0 means "OFF and not responding to     * commands".     *     * @param source The A/C unit that produced the notification.     *     * @param stage The current running stage. 0 means stopped, positive     * values mean heating, negative values mean cooling.     */    public void stageChanged(AC source, int stage);        /**     * Receive a notification about the change in the A/C demand.     *     * @param source The A/C unit that produced the notification.     *     * @param demand Current A/C demand.     */    public void demandChanged(AC source, double demand);    /**     * Receive a notification about the change in the A/C fan speed.     *     * @param source The A/C unit that produced the notification.     *     * @param speed Current A/C fan speed.     */    public void fanSpeedChanged(AC source, double speed);}

⌨️ 快捷键说明

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