-
Notifications
You must be signed in to change notification settings - Fork 0
/
AkilliCihaz1.java
47 lines (38 loc) · 1.2 KB
/
AkilliCihaz1.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import java.util.concurrent.TimeUnit;
public class AkilliCihaz1 extends ObserverCihaz implements ICihaz {
/** ICihaz scope */
@Override
public void sicaklikDon() throws InterruptedException{
sicaklik.sicaklikOku();
TimeUnit.SECONDS.sleep(1);
}
@Override
public void sogutucuAc() throws InterruptedException{
System.out.print("Ýþlem Yapýlýyor...\n");
TimeUnit.SECONDS.sleep(1);
eyleyici.sogutucuAc();
TimeUnit.SECONDS.sleep(1);
System.out.print("\nSistemden Çýkýlýyor..");
}
@Override
public void sogutucuKapat() throws InterruptedException {
System.out.print("Ýþlem Yapýlýyor...\n");
TimeUnit.SECONDS.sleep(1);
eyleyici.sogutucuKapat();
TimeUnit.SECONDS.sleep(1);
System.out.print("\nSistemden Çýkýlýyor...");
}
/** Observer class scope */
@Override
public void durum() throws InterruptedException {
TimeUnit.SECONDS.sleep(1);
System.out.print("Cihaz Kapalý!\n");
TimeUnit.SECONDS.sleep(1);
System.out.print("Cihaz Açýlýþ Testi Yapýlýyor...\n");
TimeUnit.SECONDS.sleep(1);
System.out.print("Beklemede..\n");
TimeUnit.SECONDS.sleep(1);
System.out.print("Algýlanýyor...\n");
TimeUnit.SECONDS.sleep(1);
}
}