View Javadoc

1   package ch.visnet.heartbreak;
2   
3   import java.util.ResourceBundle;
4   
5   import com.adhoco.controller.ControllerSettings;
6   import com.adhoco.controller.IHomeController;
7   import com.adhoco.controller.IMeteo;
8   import com.adhoco.controller.IOutdoorIlluminance;
9   import com.adhoco.controller.IRoomController;
10  import com.adhoco.controller.PresenceState;
11  import com.adhoco.hardware.osgi.Hardware;
12  import com.adhoco.hardware.osgi.StatusFlags;
13  import com.adhoco.homestructure.Home;
14  import com.adhoco.homestructure.IHome;
15  import com.adhoco.homestructure.Room;
16  import com.adhoco.homestructure.RoomID;
17  import com.adhoco.system.HardwareID;
18  
19  public class MockRoomController implements IRoomController {
20    private final ZoneModel zoneModel;
21    private final Room room;
22    private final Home home;
23    private final ControllerSettings controllerSettings;
24    private final IHomeController homeController;
25    private final IMeteo meteo;
26    
27    public MockRoomController(ZoneModel zoneModel,
28                              Room room,
29                              Home home,
30                              ControllerSettings controllerSettings,
31                              IHomeController homeController,
32                              IMeteo meteo) {
33      this.zoneModel = zoneModel;
34      this.room = room;
35      this.home = home;                        
36      this.controllerSettings = controllerSettings;
37      this.homeController = homeController;
38      this.meteo = meteo;
39    }
40    
41    public IOutdoorIlluminance getBestOutdoorIlluminance() {
42      throw new UnsupportedOperationException("Not yet implemented");
43    }
44  
45    public IHomeController getHomeController() {
46      return homeController;
47    }
48  
49    public IMeteo getMeteo() {
50      return meteo;
51    }
52  
53    public float[] getPresPredicted(int arg0) {
54      throw new UnsupportedOperationException("Not yet implemented");
55    }
56  
57    public float getPresenceHistory(long arg0) {
58      throw new UnsupportedOperationException("Not yet implemented");
59    }
60  
61    public PresenceState getPresenceState() {
62      throw new UnsupportedOperationException("Not yet implemented");
63    }
64  
65    public ResourceBundle getResourceBundle() {
66      throw new UnsupportedOperationException("Not yet implemented");
67    }
68  
69    public ControllerSettings getSettings() {
70      return controllerSettings;
71    }
72  
73    public float getTemperature() {
74      return (float)zoneModel.getTemperature();
75    }
76  
77    public float getTemperature(long arg0) {
78      throw new UnsupportedOperationException("Not yet implemented");
79    }
80  
81    public boolean isStarted() {
82      throw new UnsupportedOperationException("Not yet implemented");
83    }
84  
85    public HardwareID getBestOutdoorIlluminanceForTime(long time) {
86      throw new UnsupportedOperationException("Not yet implemented");
87    }
88  
89    public IHome getHome() {
90      return home;
91    }
92  
93    public RoomID getRoomID() {
94      return room.getRoomID();
95    }
96  
97    public void notifyBusCOV(Hardware arg0, StatusFlags arg1, int arg2) {
98      throw new UnsupportedOperationException("Not yet implemented");
99    }
100 
101   public void notifyCOV(Hardware arg0, StatusFlags arg1, int arg2) {
102     throw new UnsupportedOperationException("Not yet implemented");
103   }
104 
105 }