temperaturesensorlistener.java

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

JAVA
27
字号
package net.sf.dz.event;import net.sf.dz.device.sensor.TemperatureSensor;/** * Temperature sensor status change listener. * * @author Copyright &copy; <a href="mailto:vt@freehold.crocodile.org"> Vadim Tkachenko 2002 * @version $Id: TemperatureSensorListener.java,v 1.2 2004/01/20 02:40:34 vtt Exp $ */public interface TemperatureSensorListener {    /**     * Accept the notification about the fact that the temperature has     * changed.     *     * @param source The sensor whose temperature has changed.     *     * @param currentTemperature If this parameter is a     * <code>java.lang.Double</code>, the current temperature value C&deg;.      * Otherwise, the object contains an error condition. Listeners who are     * able to parse the error object, should do so, others must accept this     * as an indication of the data source being unavailable.     */    public void currentTemperatureChanged(TemperatureSensor source, Object currentTemperature);}

⌨️ 快捷键说明

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