damper.java

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

JAVA
55
字号
package net.sf.dz.device.actuator;import java.io.IOException;import org.freehold.jukebox.conf.Configurable;import net.sf.dz.event.DamperListener;/** * The damper abstraction. * * * The class implementing this interface controls the hardware. * * @author Copyright &copy; <a href="mailto:vt@freehold.crocodile.org">Vadim Tkachenko</a> 2001-2002 * @version $Id: Damper.java,v 1.1 2002/05/06 06:19:22 vtt Exp $ */public interface Damper extends Configurable {    /**     * Set the damper opening.     *     * @param throttle 0 is fully closed, 1 is fully open, 0...1 corresponds     * to partially open position.     *     * @exception IOException if there was a problem communicating with the     * hardware.     */    public void set(double throttle) throws IOException;        /**     * Get current damper position.     *     * @return Damper position.     *     * @exception IOException if there was a problem communicating with the     * hardware.     */    public double getThrottle() throws IOException;        /**     * Add the listener.     *     * @param listener Listener to add.     */    public void addListener(DamperListener listener);        /**     * Remove the listener.     *     * @param listener Listener to remove.     */    public void removeListener(DamperListener listener);}

⌨️ 快捷键说明

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