RiverRat - An MIT iCampus project | http://web.mit.edu/riverrat/ |
Inheritance diagram for riverrat.testing.FakeServer:
Public Member Functions | |
FakeServer () | |
Default constructor. | |
FakeServer (int newport) | |
Constructor. | |
void | openFile (String name, boolean delay) |
Opens FileInputStream with appropriate filename. | |
void | mainServer () |
Main operation function. | |
Static Public Member Functions | |
void | printUsage () |
Prints help information for test case and exits. | |
void | main (String args[]) |
Test method. | |
Protected Attributes | |
InputStream | fileInputStream = null |
fileInputStream to read data from. | |
Static Protected Attributes | |
String | filename = "race.xml" |
File to read data from, defaults to "race.xml". |
Definition at line 16 of file FakeServer.java.
|
Default constructor. Calls super() to initialize server. Definition at line 24 of file FakeServer.java. Referenced by riverrat.testing.FakeServer.main(). |
|
Constructor. Calls super(newport) to initialize server.
Definition at line 32 of file FakeServer.java. |
|
Test method. Starts a new FakeServer, spawns a Thread with it, then just loops. Argument specifies (optional) filename.
Reimplemented from riverrat.BasicServer. Reimplemented in riverrat.testing.NMEAFakeServer, and riverrat.testing.XMLFakeServer. Definition at line 86 of file FakeServer.java. References riverrat.testing.FakeServer.FakeServer(), riverrat.testing.FakeServer.filename, and riverrat.testing.FakeServer.printUsage(). |
|
Main operation function. Overrides super.mainServer(). Initializes an XML parser and parses an input file while using callbacks to output data to TCP stream. Reimplemented from riverrat.BasicServer. Reimplemented in riverrat.testing.NMEAFakeServer, and riverrat.testing.XMLFakeServer. Definition at line 57 of file FakeServer.java. |
|
Opens FileInputStream with appropriate filename.
Definition at line 39 of file FakeServer.java. References riverrat.testing.FakeServer.fileInputStream. Referenced by riverrat.testing.XMLFakeServer.mainServer(), and riverrat.testing.NMEAFakeServer.mainServer(). |
|
Prints help information for test case and exits.
Definition at line 65 of file FakeServer.java. Referenced by riverrat.testing.FakeServer.main(). |