// Path: osgi.enroute.trains.api/src/osgi/enroute/trains/controller/api/SwitchSegmentController.java
// public interface SwitchSegmentController extends SegmentController {
// 
// 	/**
// 	 * Set the switch to normal or the alternative
// 	 * @param alternative
// 	 */
// 	void swtch(boolean alternative);
// 	
// 	boolean getSwitch();
// }


import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.ConfigurationPolicy;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.metatype.annotations.Designate;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;
import com.pi4j.io.gpio.GpioController;
import com.pi4j.io.gpio.GpioPin;
import com.pi4j.io.gpio.GpioPinDigitalOutput;
import com.pi4j.io.gpio.Pin;
import com.pi4j.io.gpio.RaspiPin;
import osgi.enroute.trains.controller.api.SwitchSegmentController;
package osgi.enroute.trains.hw.provider;




@Designate(ocd = SwitchSegmentImpl.Config.class, factory = true)
@Component(name = "osgi.enroute.trains.hw.switch", property = "service.exported.interfaces=*",
        configurationPolicy = ConfigurationPolicy.REQUIRE)
// Path: osgi.enroute.trains.api/src/osgi/enroute/trains/controller/api/SwitchSegmentController.java
// public interface SwitchSegmentController extends SegmentController {
// 
// 	/**
// 	 * Set the switch to normal or the alternative
// 	 * @param alternative
// 	 */
// 	void swtch(boolean alternative);
// 	
// 	boolean getSwitch();
// }


// Path: osgi.enroute.trains.hw.provider/src/osgi/enroute/trains/hw/provider/SwitchSegmentImpl.java
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.ConfigurationPolicy;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.metatype.annotations.Designate;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;
import com.pi4j.io.gpio.GpioController;
import com.pi4j.io.gpio.GpioPin;
import com.pi4j.io.gpio.GpioPinDigitalOutput;
import com.pi4j.io.gpio.Pin;
import com.pi4j.io.gpio.RaspiPin;
import osgi.enroute.trains.controller.api.SwitchSegmentController;

package osgi.enroute.trains.hw.provider;




@Designate(ocd = SwitchSegmentImpl.Config.class, factory = true)
@Component(name = "osgi.enroute.trains.hw.switch", property = "service.exported.interfaces=*",
        configurationPolicy = ConfigurationPolicy.REQUIRE)
public class SwitchSegmentImpl implements SwitchSegmentController {