faa.tg.nas.airport.runway.ils
Class ILS

java.lang.Object
  extended by faa.tg.nas.airport.runway.ils.ILS
All Implemented Interfaces:
java.io.Serializable

public class ILS
extends java.lang.Object
implements java.io.Serializable

 ILS is a class which defines the Instrument Landing System for
 a runway at an airport.
 
See the source: ILS.java

Version:
$Id: ILS.java,v 3.5 2008/05/23 16:54:33 lykensj Exp $
Author:
Jocelyn Richardt
See Also:
Runway, Airport, Serialized Form

Field Summary
private  Airport airport
           
private static Distance APP_GATE_TO_THLD
           
private  Position approachGate
          This is the position of the approach gate for the runway (may be an estimate).
static java.lang.String CVS_VERSION_ID
          The CVS Version ID.
private static Angle DEFAULT_GLIDE_ANGLE
           
private  GlideSlope glideSlope
           
private  Localizer localizer
           
private static Distance MAX_DISTANCE_TO_P
           
private static TrueHeading OFFSET_HDG_TO_GLD_SLP_ANT
           
private static Distance OM_TO_THRESHOLD
           
private  Marker outerMarker
           
private  Runway runway
           
private static Distance RWYEND_TO_LCLZR
           
(package private) static long serialVersionUID
           
private static Distance THLD_TO_GLD_SLP_ANT
           
 
Constructor Summary
ILS(Airport aprt, Runway runwy)
          Constructor for ILS.
ILS(Airport apt, Runway rwy, Localizer loc, GlideSlope gs, Marker outerMarker)
          Constructor for ILS.
 
Method Summary
 Distance approximateApproachLength(Position aircraftPos, TrueHeading acHeading)
          This method guesses the distance left to cover if the aircraft is vectored toward the localizer.
 java.lang.String getAirportName()
           
 Position getApproachGate()
           
static GlideSlope getDefaultGlideSlope(Runway appRunway)
           
static ILS getDefaultIls(Runway appRunway)
           
static Localizer getDefaultLocalizer(Runway appRunway)
           
static Marker getDefaultOuterMarker(Runway appRunway)
           
 Distance getDistanceToOuterMarker()
          The arc distance to the outer marker (around the earth, not through it) at an altitude of zero.
 GlideSlope getGlideSlope()
           
 Localizer getLocalizer()
           
 Marker getOuterMarker()
           
 java.lang.String getRunwayName()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID.

See Also:
Constant Field Values

APP_GATE_TO_THLD

private static final Distance APP_GATE_TO_THLD

OM_TO_THRESHOLD

private static final Distance OM_TO_THRESHOLD

RWYEND_TO_LCLZR

private static final Distance RWYEND_TO_LCLZR

THLD_TO_GLD_SLP_ANT

private static final Distance THLD_TO_GLD_SLP_ANT

OFFSET_HDG_TO_GLD_SLP_ANT

private static final TrueHeading OFFSET_HDG_TO_GLD_SLP_ANT

DEFAULT_GLIDE_ANGLE

private static final Angle DEFAULT_GLIDE_ANGLE

airport

private Airport airport

runway

private Runway runway

localizer

private Localizer localizer

glideSlope

private GlideSlope glideSlope

outerMarker

private Marker outerMarker

approachGate

private Position approachGate
This is the position of the approach gate for the runway (may be an estimate). This may be the estimated Position of the approach gate if no position is provided by the import. Currently only an estimate is needed, for the landing logic, because it is used as a general rule to determine when to start slowing down for an ILS approach. Aircraft should be on the localizer by about 2 miles before the approach gate.


MAX_DISTANCE_TO_P

private static Distance MAX_DISTANCE_TO_P
Constructor Detail

ILS

public ILS(Airport apt,
           Runway rwy,
           Localizer loc,
           GlideSlope gs,
           Marker outerMarker)
Constructor for ILS.

Parameters:
apt - Airport for this ILS.
rwy - Runway for this ILS.
loc - Localizer object.
gs - GlideSlope object.
outerMarker - Marker object designating the outer marker.

ILS

public ILS(Airport aprt,
           Runway runwy)
Constructor for ILS.

Parameters:
aprt - Airport for this ILS.
runwy - Runway for this ILS.
Method Detail

getLocalizer

public Localizer getLocalizer()
Returns:
Returns the localizer for this ILS object or a default localizer if it is null. This get method is unusual, as the constructor allows nulls for the Localizer to be stored and will only be checked if the localizer is needed. If it is null a default localizer based on the ILS object's runway will be created.

getGlideSlope

public GlideSlope getGlideSlope()
Returns:
Returns the glideSlope for this ILS object or a default GlideSlope if it is null.

getOuterMarker

public Marker getOuterMarker()
Returns:
Returns the glideSlope for this ILS object or a default GlideSlope if it is null.

getDistanceToOuterMarker

public Distance getDistanceToOuterMarker()
The arc distance to the outer marker (around the earth, not through it) at an altitude of zero.


getAirportName

public java.lang.String getAirportName()
Returns:
A String representing the ID of the airport for this ILS.

getRunwayName

public java.lang.String getRunwayName()
Returns:
Returns the name of the runway associated with this ILS.

getApproachGate

public Position getApproachGate()
Returns:
Returns the approach gate Position (may be approximate).

getDefaultGlideSlope

public static GlideSlope getDefaultGlideSlope(Runway appRunway)
Returns:
Return default GlideSlope based on the input threshold position.

getDefaultLocalizer

public static Localizer getDefaultLocalizer(Runway appRunway)
Returns:
Returns default Localizer based on the input threshold position.

getDefaultOuterMarker

public static Marker getDefaultOuterMarker(Runway appRunway)
Returns:
Returns a default Outer Marker based on the input threshold position.

getDefaultIls

public static ILS getDefaultIls(Runway appRunway)
Returns:
Returns a default ILS based on the input Runway.

approximateApproachLength

public Distance approximateApproachLength(Position aircraftPos,
                                          TrueHeading acHeading)
This method guesses the distance left to cover if the aircraft is vectored toward the localizer.

Parameters:
aircraftPos - The Aircraft's current position.
acHeading - The aircraft's current vector.
Returns:
Returns the approximate distance left to travel.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)