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

📄 dampercontroller.java

📁 这是一个以JAVA编写的程序,本人还没有试过,是一个简单的温度控制系统
💻 JAVA
字号:
package net.sf.dz.device.model;import java.util.Iterator;import net.sf.dz.device.actuator.Damper;import net.sf.dz.device.model.Thermostat;/** * A damper controller. * * Controls the behavior of the dampers belonging to a particular {@link * Unit unit} based on the inputs from the {@link ZoneController zone * controller} and manual fan override. * * @author Copyright &copy; <a href="mailto:vt@freehold.crocodile.org">Vadim Tkachenko</a> 2001 * @version $Id: DamperController.java,v 1.3 2002/07/09 06:07:33 vtt Exp $ */public interface DamperController {    /**     * Create an association between the thermostat and the damper.     *     * @param ts Thermostat to use as a key.     *     * @param damper Damper to use as a value.     */    public void put(Thermostat ts, Damper damper);    /**     * Get the damper corresponding to a given thermostat.     *     * @param ts Thermostat to get the damper for.     *     * @return The instance of the damper serving the same zone as the     * thermostat given in the input parameter.     */    public Damper getDamper(Thermostat ts);    /**     * Get the thermostat corresponding to a given damper.     *     * @param damper Damper to get the thermostat for.     *     * @return The instance of the thermostat serving the same zone as the     * damper given in the input parameter.     */    public Thermostat getThermostat(Damper damper);        /**     * Set the damper to a given position.     *     * @param damper Damper to set.     *     * @param position Position to set.     *     * @exception IllegalArgumentException if the position is outside of     * 0...1.0 range.     */    public void set(Damper damper, double position);        /**     * Get the iterator on the dampers.     *     * Each element of the iterator is a damper.     *     * @return Iterator on the dampers.     */    public Iterator iterator();}

⌨️ 快捷键说明

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