thermostatlistener.java
来自「这是一个以JAVA编写的程序,本人还没有试过,是一个简单的温度控制系统」· Java 代码 · 共 50 行
JAVA
50 行
package net.sf.dz.event;import net.sf.dz.device.model.Thermostat;/** * The thermostat listener. * * @author Copyright © <a href="mailto:vt@freehold.crocodile.org">Vadim Tkachenko</a> 2002 * @version $Id: ThermostatListener.java,v 1.3 2004/01/20 02:40:34 vtt Exp $ */public interface ThermostatListener { /** * Accept the notification about the change of the controller output. * * @param source The thermostat whose controller output has changed. * * @param signal Current value of the controller output, or the error * condition object. */ public void controlSignalChanged(Thermostat source, Object signal); /** * Accept the notification about change in 'enabled' state * * @param source The thermostat whose 'enabled' state has changed. * * @param enabled New value. */ public void enabledStateChanged(Thermostat source, boolean enabled); /** * Accept the notification about change in 'voting' state * * @param source The thermostat whose 'voting' state has changed. * * @param voting New value. */ public void votingStateChanged(Thermostat source, boolean voting); /** * Accept the notification about change in 'hold' state * * @param source The thermostat whose 'hold' state has changed. * * @param hold New value. */ public void holdStateChanged(Thermostat source, boolean hold);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?