RiverRat - An MIT iCampus project | http://web.mit.edu/riverrat/ |
Public Member Functions | |
RadioListener () | |
Default constructor. | |
RadioListener (Race race) | |
Constructor. | |
RadioListener (Race race, String connect_host, int connect_port) | |
Constructor. | |
void | run () |
Bada boom, bada bing. | |
Static Public Member Functions | |
void | main (String args[]) |
Test case. | |
Package Attributes | |
Race | therace = null |
Race to use for data writing. | |
Static Package Attributes | |
int | port = 9999 |
Port to connect on by default. | |
String | host = "localhost" |
Host to connect to by default. |
Definition at line 12 of file RadioListener.java.
|
Default constructor. Used for debugging only. Definition at line 25 of file RadioListener.java. Referenced by riverrat.RadioListener.main(). |
|
Constructor. Takes a class implementing the RaceInterface interface and uses it to handle data from the socket.
Definition at line 34 of file RadioListener.java. |
|
Constructor. Takes a class implementing the RaceInterface interface and uses it to handle data from the socket. Connects to a specific host:port rather than the default.
Definition at line 47 of file RadioListener.java. References riverrat.RadioListener.host. |
|
Test case. This starts a new RadioListener and prints some debugging info. Definition at line 82 of file RadioListener.java. References riverrat.RadioListener.RadioListener(). |
|
Bada boom, bada bing. This is where the cool stuff happens. Recieves data, calls various methods to parse data from radios and write information to the Race instance. Definition at line 58 of file RadioListener.java. References riverrat.RadioListener.host. |