switchcontainer.java
来自「这是一个以JAVA编写的程序,本人还没有试过,是一个简单的温度控制系统」· Java 代码 · 共 43 行
JAVA
43 行
package net.sf.dz.daemon.onewire;import java.io.IOException;public interface SwitchContainer { /** * Get the number of channels this switch provides. * * @return number of channels. */ int getChannelCount(); /** * Write value. * * @param channel Channel to write to. * * @param value Value to write. * * @exception IOException if there was a problem talking to the device. */ void write(int channel, boolean value) throws IOException; /** * Read channel value. * * @param channel Channel to read. * * @return Value for the given channel. * * @exception IOException if there was a problem talking to the device. */ boolean read(int channel) throws IOException; /** * Reset the switch to default state (all zeros). * * @exception IOException if there was a problem talking to the device. */ void reset() throws IOException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?