onewirecontainerlistener.java
来自「这是一个以JAVA编写的程序,本人还没有试过,是一个简单的温度控制系统」· Java 代码 · 共 49 行
JAVA
49 行
package net.sf.dz.daemon.onewire;/** * The {@link OneWireServer 1-Wire® 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 © <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® network address of the device arrived, as * string. * * @param type 1-Wire® 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® network address of the device departed, as * string. */ public void deviceDeparted(String address); /** * Accept a notification about device failure. * * @param address 1-Wire® 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 + =
减小字号Ctrl + -
显示快捷键?