// Path: AutoSIM-Environments/src/com/automatski/autosim/environments/IDevice.java
// public interface IDevice {
// 
// 	public void setConfig(Object object);
// 	public void setEnvironments(IEnvironments environments);
// 	
// 	public void setup() throws Exception;
// 	public void start() throws Exception;
// 	public void stop() throws Exception;
// 	public void teardown() throws Exception;
// 	
// 	public void step() throws Exception;
// 	
// }
// 
// Path: AutoSIM-Environments/src/com/automatski/autosim/environments/IDeviceFactory.java
// public interface IDeviceFactory {
// 
// 	public IDevice getDevice() throws Exception;
// 	
// }
// 
// Path: AutoSIM-Environments/src/com/automatski/autosim/environments/IEnvironments.java
// public interface IEnvironments {
// 
// 	public void setup(String environment) throws Exception;
// 	public void start(String environment) throws Exception;
// 	public void stop(String environment) throws Exception;
// 	public void teardown(String environment) throws Exception;
// 	
// 	
// 	public void registerConnectionFactory(String name, IConnectionFactory factory); 
// 	public void deregisterConnectionFactory(String name);
// 	public IConnection getConnection(String name) throws Exception;
// 	
// 	public void registerDeviceFactory(String name, IDeviceFactory factory); 
// 	public void deregisterDeviceFactory(String name);
// 	public IDevice getDevice(String name) throws Exception;
// 	
// 	
// 	
// }
// 
// Path: AutoSIM-SampleDevices/src/com/automatski/autosim/sampledevices/config/AutoSIMDeviceConfig.java
// public class AutoSIMDeviceConfig {
// 
// 	public String name;
// 
// 	public String deviceClassName;
// 	public String connectionName;
// }


import com.automatski.autosim.environments.IDevice;
import com.automatski.autosim.environments.IDeviceFactory;
import com.automatski.autosim.environments.IEnvironments;
import com.automatski.autosim.sampledevices.config.AutoSIMDeviceConfig;
/*
 *  AutoSIM - Internet of Things Simulator
 *  Copyright (C) 2014, Aditya Yadav <aditya@automatski.com>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.automatski.autosim.sampledevices;


public class DevicesConnectionFactory implements IDeviceFactory{

	private AutoSIMDeviceConfig connectionConfig = null;
	private IEnvironments environments = null;
	
	public DevicesConnectionFactory(AutoSIMDeviceConfig connectionConfig, IEnvironments environments){
		this.connectionConfig = connectionConfig;
		this.environments = environments;
	}


	@Override
// Path: AutoSIM-Environments/src/com/automatski/autosim/environments/IDevice.java
// public interface IDevice {
// 
// 	public void setConfig(Object object);
// 	public void setEnvironments(IEnvironments environments);
// 	
// 	public void setup() throws Exception;
// 	public void start() throws Exception;
// 	public void stop() throws Exception;
// 	public void teardown() throws Exception;
// 	
// 	public void step() throws Exception;
// 	
// }
// 
// Path: AutoSIM-Environments/src/com/automatski/autosim/environments/IDeviceFactory.java
// public interface IDeviceFactory {
// 
// 	public IDevice getDevice() throws Exception;
// 	
// }
// 
// Path: AutoSIM-Environments/src/com/automatski/autosim/environments/IEnvironments.java
// public interface IEnvironments {
// 
// 	public void setup(String environment) throws Exception;
// 	public void start(String environment) throws Exception;
// 	public void stop(String environment) throws Exception;
// 	public void teardown(String environment) throws Exception;
// 	
// 	
// 	public void registerConnectionFactory(String name, IConnectionFactory factory); 
// 	public void deregisterConnectionFactory(String name);
// 	public IConnection getConnection(String name) throws Exception;
// 	
// 	public void registerDeviceFactory(String name, IDeviceFactory factory); 
// 	public void deregisterDeviceFactory(String name);
// 	public IDevice getDevice(String name) throws Exception;
// 	
// 	
// 	
// }
// 
// Path: AutoSIM-SampleDevices/src/com/automatski/autosim/sampledevices/config/AutoSIMDeviceConfig.java
// public class AutoSIMDeviceConfig {
// 
// 	public String name;
// 
// 	public String deviceClassName;
// 	public String connectionName;
// }


// Path: AutoSIM-SampleDevices/src/com/automatski/autosim/sampledevices/DevicesConnectionFactory.java
import com.automatski.autosim.environments.IDevice;
import com.automatski.autosim.environments.IDeviceFactory;
import com.automatski.autosim.environments.IEnvironments;
import com.automatski.autosim.sampledevices.config.AutoSIMDeviceConfig;

/*
 *  AutoSIM - Internet of Things Simulator
 *  Copyright (C) 2014, Aditya Yadav <aditya@automatski.com>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.automatski.autosim.sampledevices;


public class DevicesConnectionFactory implements IDeviceFactory{

	private AutoSIMDeviceConfig connectionConfig = null;
	private IEnvironments environments = null;
	
	public DevicesConnectionFactory(AutoSIMDeviceConfig connectionConfig, IEnvironments environments){
		this.connectionConfig = connectionConfig;
		this.environments = environments;
	}


	@Override
	public IDevice getDevice() throws Exception {