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

📄 temperaturesensor.java

📁 这是一个以JAVA编写的程序,本人还没有试过,是一个简单的温度控制系统
💻 JAVA
字号:
package net.sf.dz.device.sensor;import org.freehold.jukebox.conf.Configurable;import net.sf.dz.event.TemperatureSensorListener;/** * Dumb temperature sensor. * * <p> * * Though dumb, the temperature sensor is an <strong>active</strong> entity, * not passive: it produces the temperature change notifications that drive * the rest of the system. * * @author Copyright &copy; <a href="mailto:vt@freehold.crocodile.org"> Vadim Tkachenko 2001-2002 * @version $Id: TemperatureSensor.java,v 1.2 2002/06/27 00:25:58 vtt Exp $ */public interface TemperatureSensor extends Configurable {    /**     * @return The current temperature in C.     */    public double getCurrentTemperature();    /**     * Add the status change listener.     *     * <p>     *     * <strong>IMPORTANT:</strong> notifying the listeners is critical - the     * thermostat <strong>is</strong> a listener. All the events in the     * system related to the temperature change are driven by this     * notification.     *     * @param listener Listener to add.     */    public void addListener(TemperatureSensorListener listener);        /**     * Remove the listener.     *     * @param listener Listener to remove.     */    public void removeListener(TemperatureSensorListener listener);        /**     * Get the sensor hardware address.     *     * The address is implementation dependent. The format of the address     * string may differ depending on whether it is local or remote, what     * kind of hardware it is, and so on and so forth.     *     * @return Hardware sensor address.     */    public String getAddress();}

⌨️ 快捷键说明

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