1 package org.wcb.autohome.interfaces;
2 /***
3 * Copyright (C) 1999 Walter Bogaardt
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 *
19 */
20 import org.wcb.autohome.exceptions.HomeException;
21 import org.wcb.autohome.model.MonitorTableModel;
22 import org.wcb.autohome.implementations.EmailHeaderBean;
23 import org.wcb.autohome.implementations.SerialPortBean;
24 import java.rmi.RemoteException;
25 import java.util.Vector;
26 import java.util.ResourceBundle;
27 import java.util.Calendar;
28 import java.util.Locale;
29 import java.rmi.Remote;
30
31 /***
32 * Project: Home Automation Server
33 * Filename: $Id: IHAGateway.java,v 1.17 2004/02/06 20:06:36 wbogaardt Exp $
34 * Abstract: Interface to the communications serial gateway.
35 *
36 * @author wbogaardt
37 * @version 1.0
38 */
39 public interface IHAGateway extends Remote {
40
41 public Vector getAvailablePorts() throws RemoteException;
42
43 public boolean isPortActive() throws RemoteException;
44
45 public void connectPortToX10Gateway(SerialPortBean bean, int device) throws RemoteException, HomeException;
46
47 public void closeSerialPort() throws RemoteException, HomeException;
48
49 public void connectSerialOnStartup(boolean s) throws RemoteException;
50
51 public boolean getConnectSerialOnStartup() throws RemoteException;
52
53 public void allCommandToSection(char houseCode, int cmnd) throws RemoteException, HomeException;
54
55 public void lampIntensity(IX10Module x10Evt, int cmnd, int units) throws RemoteException, HomeException;
56
57 public void deviceCommands(IX10Module x10evt, int cmnd) throws RemoteException, HomeException;
58
59 public void setClock(Calendar calendar, char houseCode, boolean batteryTimer, boolean clrMonitored, boolean purgeTimer) throws RemoteException, HomeException;
60
61 public boolean monitorCM11A() throws RemoteException;
62
63 public boolean disableMonitorCM11A() throws RemoteException;
64
65 public void setMonitorModel(MonitorTableModel mModel) throws RemoteException;
66
67 public void recoverCM11A(boolean value) throws RemoteException;
68
69 public boolean isAutoRecoverCM11A() throws RemoteException;
70
71 public Calendar getCM11ADate() throws RemoteException;
72
73 public void updateCM11AStatus() throws RemoteException;
74
75 public int getBatteryUsage() throws RemoteException;
76
77 public void clearTimerMacros() throws RemoteException, HomeException;
78
79 public void clearMacroEvents() throws RemoteException, HomeException;
80
81 public void sendMacrosToInterface(Vector v) throws RemoteException, HomeException;
82
83 public SerialPortBean getSerialPort() throws RemoteException;
84
85 public void setSerialPort(SerialPortBean bean) throws RemoteException;
86
87 public void setInterfaceType(int i) throws RemoteException;
88
89 public int getInterfaceType() throws RemoteException;
90
91 public void saveServerProperty() throws RemoteException;
92
93 public ResourceBundle getI18n() throws RemoteException;
94
95 public String getLookAndFeel() throws RemoteException;
96
97 public void setLookAndFeel(String s) throws RemoteException;
98
99
100 public boolean runEventsDaemon(Vector table) throws RemoteException;
101
102 public void stopEventsDaemon() throws RemoteException;
103
104 public boolean isEventDaemonRunning() throws RemoteException;
105
106 public boolean isSpeechEnabled() throws RemoteException;
107
108 public void enableSpeechEngine(boolean bV) throws RemoteException;
109
110 public void speakMessage(String messages) throws RemoteException;
111
112 public Locale getLocal() throws RemoteException;
113
114 public void setLocal(Locale loc) throws RemoteException;
115
116 public EmailHeaderBean getEmailInformation() throws RemoteException;
117
118 public void setEmailInformation(EmailHeaderBean bean) throws RemoteException;
119 }
120