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

AircraftData

public class AircraftData extends Object
A class created to hold the data that describes the state of an Aircraft object at a particular point in time.

There are a number of publically visible data items:

  • String callSign - the call sign (squawk code) for this aircraft that can be used to identify it over a radio link
  • int east - the east/west distance (metres) from centre of the airspace
  • int north - the north/south (metres) distance from centre of the airspace
  • int heading - the heading in degrees - 0 is NORTH and angles are measured clockwise so EAST is 90
  • int flightLevel - the height in 100's of feet above sea level of the aircraft so a flightLevel of 210 means an altitude of 21000 feet.
  • int speed - the speed in kilometres per hour of the aircraft.

Fields Summary
public String
callSign
public int
east
public int
north
public int
heading
public int
flightLevel
public int
speed
Constructors Summary
Methods Summary
public java.lang.StringtoString()
Provided for debugging purposes

  return "Aircraft: " + callSign
            + "\tPosition: " + east + "E " + north + "N"
            + "\tHeading: " + heading
            + "\tHeight : " + flightLevel*100
            + "\tSpeed: " + speed;