작업 자동화를 체감하기 위하여
실제로 움직이는 것은 아니지만 체감을 하기 위하여
git clone https://github.com/egoing/java-iot.git
import org.opentutorials.iot.Elevator;
import org.opentutorials.iot.Lighting;
import org.opentutorials.iot.Security;
public class OkJavaGoInHome {
public static void main(String[] args) {
String id = "JAVA APT 507";
// Elevator call
Elevator myElevator = new Elevator(id);
myElevator.callForup(1);
// Security off
Security mySecurity = new Security(id);
mySecurity.off();
// Light on
Lighting hallLamp = new Lighting(id+" Hall Lamp");
hallLamp.on();
Lighting floorLamp = new Lighting(id+" Floor Lamp");
floorLamp.on();
}
}
당신의 시간이 헛되지 않는 글이 되겠습니다.
I'll write something that won't waste your time.