Revision 531
more cleanup of client
ColonetServerInterface.java | ||
---|---|---|
27 | 27 |
*/ |
28 | 28 |
public class ColonetServerInterface |
29 | 29 |
{ |
30 |
/* STATIC FIELDS |
|
31 |
* Eugene Marinelli, Fan |
|
32 |
* 10/27/06 |
|
33 |
* |
|
34 |
* Colonet Definitions - common definitions and structs used in all colonet |
|
35 |
* applications |
|
30 |
/* Old packet structure: |
|
36 | 31 |
|
37 |
Old packet structure: |
|
38 |
|
|
39 | 32 |
COMMAND PACKET STRUCTURE |
40 | 33 |
1: SEND_TO_ROBOT |
41 | 34 |
2: # of robot, or GLOBAL_DEST |
... | ... | |
107 | 100 |
public static final String ORB_SET_NUM = "21"; //0x15 |
108 | 101 |
public static final String ORB_SEND = "22"; //0x16 |
109 | 102 |
|
110 |
|
|
111 | 103 |
Colonet colonet; //save reference to the entire applet locally |
112 | 104 |
Socket socket; |
113 | 105 |
OutputStreamWriter out; |
... | ... | |
115 | 107 |
DataListener dataListener; |
116 | 108 |
JTextArea log, txtMatrix; |
117 | 109 |
|
118 |
|
|
119 | 110 |
/* |
120 | 111 |
* FUNCTION IMPLEMENTATIONS |
121 | 112 |
*/ |
... | ... | |
125 | 116 |
* reference must be provided to ensure that data is routed correctly. |
126 | 117 |
* |
127 | 118 |
* @param colonet The Colonet object to save locally. This reference cannot be changed once the |
128 |
* ColonetSreverInterface has been contsructed.
|
|
119 |
* ColonetSreverInterface has been contsructed.
|
|
129 | 120 |
* @throws NullPointerException if colonet is null |
130 | 121 |
* |
131 | 122 |
*/ |
Also available in: Unified diff