1 package org.wcb.autohome.interfaces;
2
3 import java.io.Serializable;
4
5 /***
6 * Copyright (C) 1999 Walter Bogaardt
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 *
22 * Project: Alice X10 Home Automation
23 * Filename: $Id: IRunEvent.java,v 1.4 2004/02/28 06:06:40 wbogaardt Exp $<BR>
24 * Abstract: This is a Run event which should be executed when a monitored
25 * event detects activity. The run event can be firing off a x10 module
26 * or runing an application program.
27 *
28 * $Log: IRunEvent.java,v $
29 * Revision 1.4 2004/02/28 06:06:40 wbogaardt
30 * *** empty log message ***
31 *
32 * Revision 1.3 2004/01/20 05:31:05 wbogaardt
33 * added speech event for runing
34 *
35 * Revision 1.2 2004/01/17 07:21:17 wbogaardt
36 * added serialization to run events and allow monitoring of these events to the file system to reload later
37 *
38 * Revision 1.1 2004/01/17 06:21:58 wbogaardt
39 * added new Run event interfaces
40 *
41 *
42 */
43 public interface IRunEvent extends Serializable {
44
45 public void setRunType(int iType);
46
47 public void setX10Module(IX10Module module);
48
49 public void setModuleCommand(int iCmd);
50
51 public void setCommand(String sCmd);
52
53 public void setArguments(String[] args);
54
55 public void setSentence(String sMsg);
56
57 public int getRunType();
58
59 public IX10Module getX10Module();
60
61 public int getModuleCommand();
62
63 public String getCommand();
64
65 public String[] getArguments();
66
67 public String getSentence();
68
69 }