RiverRat - An MIT iCampus project | http://web.mit.edu/riverrat/ |
Inheritance diagram for riverrat.testing.NMEAFakeServer:
Public Member Functions | |
NMEAFakeServer () | |
Default constructor. | |
NMEAFakeServer (int newport) | |
Constructor. | |
NMEAFakeServer (String newhost, int newport) | |
Constructor to get NMEA stream from network instead of file. | |
void | setupState () |
Setup state data, and print to the XML stream. | |
void | endRace () |
void | printBoat (float lat, float lon, long time) |
void | mainServer () |
Main operation function. | |
Static Public Member Functions | |
void | main (String args[]) |
Test method. | |
Protected Attributes | |
BufferedReader | breader |
BufferedReader to read data from. | |
boolean | DELAY_INPUT = false |
Determines whether or not to delay input, for testing. | |
boolean | FILE_DATA |
Determines whether or not to get data from local file rather than network. | |
String | nmeahost = "localhost" |
Host to get NMEA data from. | |
int | nmeaport = 9999 |
Port to get NMEA data on. | |
Static Protected Attributes | |
String | file = "track6.raw" |
File to read data from, overrides superclass. | |
final String | hostname = "localhost" |
Mostly complete, but needs an NMEA parser.
Definition at line 14 of file NMEAFakeServer.java.
|
Default constructor. Calls super(). Definition at line 40 of file NMEAFakeServer.java. References riverrat.testing.NMEAFakeServer.FILE_DATA. Referenced by riverrat.testing.NMEAFakeServer.main(). |
|
Constructor. Calls super(newport). Definition at line 49 of file NMEAFakeServer.java. References riverrat.testing.NMEAFakeServer.FILE_DATA. |
|
Test method. Starts a new NMEAFakeServer, spawns a Thread with it, then just loops. Argument specifies (optional) filename.
Reimplemented from riverrat.testing.FakeServer. Definition at line 251 of file NMEAFakeServer.java. References riverrat.testing.NMEAFakeServer.NMEAFakeServer(). |
|
Main operation function. Overrides super.mainServer() Reimplemented from riverrat.testing.FakeServer. Definition at line 126 of file NMEAFakeServer.java. References riverrat.testing.NMEAFakeServer.breader, riverrat.testing.NMEAFakeServer.file, riverrat.testing.NMEAFakeServer.FILE_DATA, riverrat.testing.NMEAFakeServer.nmeahost, riverrat.testing.NMEAFakeServer.nmeaport, riverrat.testing.FakeServer.openFile(), and riverrat.testing.NMEAFakeServer.setupState(). |
|
Setup state data, and print to the XML stream.
Definition at line 68 of file NMEAFakeServer.java. References riverrat.BasicServer.endElement(), riverrat.BasicServer.startDocument(), and riverrat.BasicServer.startElement(). Referenced by riverrat.testing.NMEAFakeServer.mainServer(). |
|
Determines whether or not to get data from local file rather than network.
Definition at line 28 of file NMEAFakeServer.java. Referenced by riverrat.testing.NMEAFakeServer.mainServer(), and riverrat.testing.NMEAFakeServer.NMEAFakeServer(). |