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 * Project: Alice X10 Home Automation
20 *Filename: $Id: X10DeviceConstants.java,v 1.9 2004/02/28 06:06:40 wbogaardt Exp $
21 *<pre>
22 *Abstract: This file contains most of the global variables that are used throught
23 * this application. It helps make this code base more maintainable.
24 *</pre>
25 *@author wbogaardt
26 *@version 1.0
27 */
28 public interface X10DeviceConstants {
29
30 public static final int TEST_TRANSMITTER = 0;
31 public static final int CM11A_TRANSMITTER = 1;
32 public static final int CM17A_TRANSMITTER = 2;
33 public static final String SERIAL_PORT = "serial.port";
34 public static final String INTERFACE_TYPE = "interface.type";
35 public static final String BAUD = "baud";
36 public static final String DATA_BIT = "data.bit";
37 public static final String STOP_BIT = "stop.bit";
38 public static final String PARITY = "parity";
39 public static final String CONNECT_ON_START = "initial.on.start";
40 public static final String EMAIL_TO = "email.to";
41 public static final String EMAIL_SMTP = "email.smtp";
42 public static final String EMAIL_FREQUENCY = "email.frequency";
43 public static final String EMAIL_FROM = "email.from";
44 public static final String EMAIL_USERNAME = "email.username";
45 public static final String EMAIL_PASSWORD = "email.password";
46 public static final String EMAIL_AUTHORIZE = "email.authorized";
47 public static final String LOOK_AND_FEEL = "look.and.feel";
48 public static final String LAST_FILE = "last.file";
49 public static final String RMI_HOST = "rmi.server";
50 public static final String LOCALHOST = "127.0.0.1";
51 public static final String BROWSER = "browser";
52 public static final String TRUE = "true";
53 public static final String FALSE = "false";
54 public static final String RECOVER_CM11A = "recover.cm11a";
55 public static final String LANGUAGE = "language";
56 public static final String COUNTRY = "country";
57 public static final String SPEECH_ENGINE = "speech.engine";
58
59
60 public static final int LAMP_MODULE_ON = 1;
61 public static final int APPLIANCE_MODULE_ON = 2;
62
63 public static final int LAMP_MODULE_OFF = 3;
64 public static final int APPLIANCE_MODULE_OFF = 4;
65
66
67 public static final int TIMER_EVENT = 10;
68 public static final int TRIGGER_EVENT = 11;
69
70 public static final int OFF_ACTION = 0;
71 public static final int ON_ACTION = 1;
72 public static final int DIM_ACTION = 2;
73 public static final int BRIGHT_ACTION = 3;
74
75
76 public static final String[] HOUSE_CODES_ARRAY = {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P"};
77
78 public static final String[] DEVICE_ARRAY = {"A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9", "A10", "A11", "A12", "A13", "A14", "A15"};
79
80
81 public static final String[] BAUD_RATE_ARRAY = {"300", "2400", "4800", "9600", "14400",
82 "28800", "38400", "57600", "115200"};
83 public static final String[] DATA_BITS_ARRAY = {"5", "6", "7", "8"};
84 public static final String[] STOP_BITS_ARRAY = {"1", "2"};
85 public static final String[] PARITY_ARRAY = {"None", "Even", "Odd"};
86
87
88 public static final String METAL = "javax.swing.plaf.metal.MetalLookAndFeel";
89 public static final String MOTIF = "com.sun.java.swing.plaf.motif.MotifLookAndFeel";
90 public static final String WINDOWS = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
91 public static final String MAC = "com.sun.java.swing.plaf.mac.MacLookAndFeel";
92 public static final String SEPARATOR = System.getProperty("file.separator");
93 public static final String USER_HOME = System.getProperty("user.home");
94 }