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.Boat Class Reference

Finished prototype - Provides a data type that contains all the information about a given Boat in a Race. More...

Inheritance diagram for riverrat.Boat:

riverrat.RaceObject List of all members.

Public Member Functions

 Boat ()
 Default constructor.

 Boat (int newid)
 Constructor.

String boatToString ()
 Returns a String with the target's id, Fix (using Fix.fixToString()) and heading in decimal degrees.


Static Package Attributes

final boolean DEBUG = false

Detailed Description

Finished prototype - Provides a data type that contains all the information about a given Boat in a Race.

The first version of this class is complete.

Definition at line 11 of file Boat.java.


Constructor & Destructor Documentation

riverrat.Boat.Boat  ) 
 

Default constructor.

Calls the super() constructor to create a Boat with id of -1, a Fix with the default constructor, and a track with an empty Vector.

Definition at line 20 of file Boat.java.

riverrat.Boat.Boat int  newid  ) 
 

Constructor.

Calls the super(int newid) constructor to create a Boat with a specific id, a Fix with the default constructor, and a track with an empty Vector.

Parameters:
newid specifies the id of the Boat to be created.

Definition at line 31 of file Boat.java.


Member Function Documentation

String riverrat.Boat.boatToString  ) 
 

Returns a String with the target's id, Fix (using Fix.fixToString()) and heading in decimal degrees.

Returns:
a String with the target's major data.

Definition at line 40 of file Boat.java.

References riverrat.Fix.fixToString(), and riverrat.Fix.getHeading().

Referenced by riverrat.Race.main().


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

Brought to you by the RiverRat team.