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

📄 nulldamper.java

📁 这是一个以JAVA编写的程序,本人还没有试过,是一个简单的温度控制系统
💻 JAVA
字号:
package net.sf.dz.device.actuator.impl;import java.io.IOException;import java.util.HashSet;import java.util.Iterator;import java.util.Set;import org.freehold.jukebox.logger.LogChannel;/** * 'Null' damper - this damper does not interact with hardware, just log * activities. * * Useful for debugging/development, uncontrolled zones, or single zone * systems. * * @author <a href="mailto:tim at buttersideup dot company">Tim Small</a> * @version $Id: NullDamper.java,v 1.2 2004/01/26 04:32:56 vtt Exp $ */public class NullDamper extends AbstractDamper {    public static final LogChannel CH_ND = new LogChannel("NullDamper");        /**     * Current throttle value.     */    private double throttle = 0.3;        protected void configure() throws Throwable {            super.configure();    }        public void moveDamper(double throttle) {            complain(LOG_DEBUG, CH_ND, "Request to move damper to position: " + throttle);        this.throttle = throttle;    }        public double getThrottle() throws IOException {            complain(LOG_DEBUG, CH_ND, "Request to get throttle position - returning: " + throttle);        return throttle;    }}

⌨️ 快捷键说明

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