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

📄 onewirecontainerlistener.java

📁 这是一个以JAVA编写的程序,本人还没有试过,是一个简单的温度控制系统
💻 JAVA
字号:
package net.sf.dz.daemon.onewire;/** * The {@link OneWireServer 1-Wire&reg; server} container listener. * * <p> * * The listener can be added using {@link OneWireServer#addListener * addListener()} method and removed using {@link * OneWireServer#removeListener removeListener()} method. * * It is not necessary for the device to be present at the moment the * listener is added; the listener will be notified when the device arrives. * * @author Copyright &copy; <a href="mailto:vt@freehold.crocodile.org">Vadim Tkachenko</a> 2001-2002 * @version $Id: OneWireContainerListener.java,v 1.4 2004/06/28 20:35:46 vtt Exp $ */public interface OneWireContainerListener {    /**     * Accept a notification about device arrival.     *     * @param address 1-Wire&reg; network address of the device arrived, as     * string.     *     * @param type 1-Wire&reg; device type (actually, name, but that'll work     * just as well).     */    public void deviceArrived(String address, String type);        /**     * Accept a notification about device departure.     *     * @param address 1-Wire&reg; network address of the device departed, as     * string.     */    public void deviceDeparted(String address);    /**     * Accept a notification about device failure.     *     * @param address 1-Wire&reg; network address of the problematic device,     * as string.     *     * @param message Error message.     */    public void deviceFault(String address, String message);}

⌨️ 快捷键说明

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