com.comsysto.buildlight.cleware.driver.TrafficLightMock Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleware-driver Show documentation
Show all versions of cleware-driver Show documentation
Java Driver for Cleware Traffic Light
The newest version!
package com.comsysto.buildlight.cleware.driver;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author zutherb
*/
public class TrafficLightMock implements TrafficLight {
private static final Logger LOGGER = LoggerFactory.getLogger(TrafficLightImpl.class);
public TrafficLightMock() {
LOGGER.info("Traffic Light Mock was created");
}
@Override
public void switchOn(Led led) {
LOGGER.info("Switch on Led {}", led.name());
}
@Override
public void switchOff(Led led) {
LOGGER.info("Switch off Led {}", led.name());
}
@Override
public void switchOnAllLeds() {
LOGGER.info("Switch on all Led");
}
@Override
public void switchOffAllLeds() {
LOGGER.info("Switch off all Led");
}
@Override
public void close() {
LOGGER.info("Close traffic light");
}
}