// Path: src/opt/boilercontrol/uk/co/jaynne/datasource/interfaces/ConfigSource.java
// public interface ConfigSource {
// 	
// 	public ConfigObject get(String key);
// 	
// 	public int set(String key, String value);
// 	
// 	public int set(String key, int value);
// 	
// 	public int set(String key, boolean value);
// 	
// 	public int set(String key, long value);
// 	
// 	public int set(String key, float value);
// }


import uk.co.jaynne.datasource.ConfigSqlSource;
import uk.co.jaynne.datasource.interfaces.ConfigSource;
package uk.co.jaynne;


public class ConfigBoostMonitor extends Thread{
	private String key;
	private boolean heating;
	private boolean water;
	private int sleepTime = 20000;
	
	/**
	 * Monitors a pin for presses and activates boost
	 * @param pin the pin to monitor
	 * @param water whether this pin controls water
	 * @param heating whether this pin controls heating
	 */
	public ConfigBoostMonitor(String key, boolean water, boolean heating) {
		this.key = key;
		this.heating = heating;
		this.water = water;
	}
	public void run() { 
// Path: src/opt/boilercontrol/uk/co/jaynne/datasource/interfaces/ConfigSource.java
// public interface ConfigSource {
// 	
// 	public ConfigObject get(String key);
// 	
// 	public int set(String key, String value);
// 	
// 	public int set(String key, int value);
// 	
// 	public int set(String key, boolean value);
// 	
// 	public int set(String key, long value);
// 	
// 	public int set(String key, float value);
// }


// Path: src/opt/boilercontrol/uk/co/jaynne/ConfigBoostMonitor.java
import uk.co.jaynne.datasource.ConfigSqlSource;
import uk.co.jaynne.datasource.interfaces.ConfigSource;

package uk.co.jaynne;


public class ConfigBoostMonitor extends Thread{
	private String key;
	private boolean heating;
	private boolean water;
	private int sleepTime = 20000;
	
	/**
	 * Monitors a pin for presses and activates boost
	 * @param pin the pin to monitor
	 * @param water whether this pin controls water
	 * @param heating whether this pin controls heating
	 */
	public ConfigBoostMonitor(String key, boolean water, boolean heating) {
		this.key = key;
		this.heating = heating;
		this.water = water;
	}
	public void run() { 
		ConfigSource config = new ConfigSqlSource();