FileDocCategorySizeDatePackage
AircraftData.javaAPI DocExample1461Sun Feb 13 17:12:30 GMT 2000gui2000

AircraftData.java

// Generated by Together

package gui2000;
       
/**
 * A class created to hold the data that describes the state of an <code>Aircraft</code>
 * object at a particular point in time.
 * <P>There are a number of publically visible data items:
 * <UL>
 * <LI><code>String callSign</code> - the call sign (squawk code) for this aircraft that can be used
 * to identify it over a radio link
 * <LI><code>int east</code> - the east/west distance (metres) from centre of the airspace
 * <LI><code>int north</code> - the north/south (metres) distance from centre of the airspace
 * <LI><code>int heading</code> - the heading in degrees - 0 is NORTH and angles are measured 
 * clockwise so EAST is 90 
 * <LI><code>int flightLevel</code> - the height in 100's of feet above sea level of the aircraft
 * so a flightLevel of 210 means an altitude of 21000 feet.
 * <LI><code>int speed</code> - the speed in kilometres per hour of the aircraft.
 * </UL>  
 */
public class AircraftData 
{  public String callSign;
   public int east;
   public int north;
   public int heading;
   public int flightLevel;
   public int speed;                             
   
   /**
    *  Provided for debugging purposes
    */
   public String toString()
   {  return "Aircraft: " + callSign
            + "\tPosition: " + east + "E " + north + "N"
            + "\tHeading: " + heading
            + "\tHeight : " + flightLevel*100
            + "\tSpeed: " + speed;
   }
}