RiverRat  - An MIT iCampus project http://web.mit.edu/riverrat/

Main Page | Software Documentation | Hardware Documentation | People | Contact | Wiki

Main Page | Class Hierarchy | Class List | File List | Class Members

riverrat.RadioListener Class Reference

Under construction - Spawns a new thread and opens up a connection to a Radio connected to a serial terminal server. More...

List of all members.

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.


Detailed Description

Under construction - Spawns a new thread and opens up a connection to a Radio connected to a serial terminal server.

Definition at line 12 of file RadioListener.java.


Constructor & Destructor Documentation

riverrat.RadioListener.RadioListener  ) 
 

Default constructor.

Used for debugging only.

Definition at line 25 of file RadioListener.java.

Referenced by riverrat.RadioListener.main().

riverrat.RadioListener.RadioListener Race  race  ) 
 

Constructor.

Takes a class implementing the RaceInterface interface and uses it to handle data from the socket.

Parameters:
race RaceInterface to be used for data handling

Definition at line 34 of file RadioListener.java.

riverrat.RadioListener.RadioListener Race  race,
String  connect_host,
int  connect_port
 

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.

Parameters:
race RaceInterface to be used for data handling connect_host String with hostname of server connect_port int with port to connect on

Definition at line 47 of file RadioListener.java.

References riverrat.RadioListener.host.


Member Function Documentation

void riverrat.RadioListener.main String  args[]  )  [static]
 

Test case.

This starts a new RadioListener and prints some debugging info.

Definition at line 82 of file RadioListener.java.

References riverrat.RadioListener.RadioListener().

void riverrat.RadioListener.run  ) 
 

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.


The documentation for this class was generated from the following file:  

Brought to you by the RiverRat team.