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.testing.XMLFakeServer Class Reference

Finished prototype - A FakeServer that takes data from an XML file. More...

Inheritance diagram for riverrat.testing.XMLFakeServer:

riverrat.testing.FakeServer riverrat.BasicServer List of all members.

Public Member Functions

 XMLFakeServer ()
 Default constructor.

 XMLFakeServer (int newport)
 Constructor.

void mainServer ()
 Main operation function.


Static Public Member Functions

void main (String args[])
 Test method.


Protected Attributes

boolean DELAY_INPUT = true
 Determines whether or not to delay input, for testing.


Static Protected Attributes

String file = "race.xml"
 File to read data from, overrides superclass.


Detailed Description

Finished prototype - A FakeServer that takes data from an XML file.

Definition at line 10 of file XMLFakeServer.java.


Constructor & Destructor Documentation

riverrat.testing.XMLFakeServer.XMLFakeServer  ) 
 

Default constructor.

Calls super().

Definition at line 18 of file XMLFakeServer.java.

Referenced by riverrat.testing.XMLFakeServer.main().

riverrat.testing.XMLFakeServer.XMLFakeServer int  newport  ) 
 

Constructor.

Calls super(newport).

Definition at line 23 of file XMLFakeServer.java.


Member Function Documentation

void riverrat.testing.XMLFakeServer.main String  args[]  )  [static]
 

Test method.

Starts a new XMLFakeServer, spawns a Thread with it, then just loops. Argument specifies (optional) filename.

Parameters:
args array of Strings with command-line arguments

Reimplemented from riverrat.testing.FakeServer.

Definition at line 79 of file XMLFakeServer.java.

References riverrat.testing.XMLFakeServer.XMLFakeServer().

void riverrat.testing.XMLFakeServer.mainServer  ) 
 

Main operation function.

Overrides super.mainServer()

Reimplemented from riverrat.testing.FakeServer.

Definition at line 30 of file XMLFakeServer.java.

References riverrat.testing.FakeServer.openFile().


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

Brought to you by the RiverRat team.