📄 damper.java
字号:
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 © <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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -