faa.tg.nas.airport.runway
Class AirportRwyID

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

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

 Defines an AirportRwyID (long runway ID) for a unique runway identifier.
 The format of this identifier is /: e.g., EWR/04L. 
 This is used because there can be airports near each other with runways
 having the same RunwayID, since the runway ID is usually named for the
 runway's magnetic heading.  However, if the airport ID is used as a
 prefix, the identifier is unique.
 
See the source AirportRwyID.java

Version:
$Id: AirportRwyID.java,v 3.1 2006/03/14 15:57:05 samf Exp $
Author:
Dana N. Whicker, Titan/SRC, Fri May 10 2002
See Also:
Serialized Form

Field Summary
protected  AirportID airportID
           
protected  java.lang.String airportRwyID
           
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
protected  RunwayID runwayID
           
(package private) static long serialVersionUID
           
 
Constructor Summary
AirportRwyID(AirportID airportID, RunwayID runwayID)
          Constructor for an AirportRwyID.
AirportRwyID(java.lang.String airportRunwayName)
          Constructor for an AirportRwyID
AirportRwyID(java.lang.String airportName, java.lang.String runwayName)
          Constructor for an AirportRwyID.
 
Method Summary
 boolean equals(AirportRwyID rwyID2)
          Returns boolean indicating whether runway IDs are for the same runway.
 AirportID getAirportID()
          Returns the AirportID of the airport associated with this runway.
 RunwayID getRunwayID()
          Returns the RunwayID representation of the AirportRwyID.
 java.lang.String toString()
          Returns the AirportRwyID (unique runway ID) as a String.
 
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

airportRwyID

protected java.lang.String airportRwyID

runwayID

protected RunwayID runwayID

airportID

protected AirportID airportID
Constructor Detail

AirportRwyID

public AirportRwyID(java.lang.String airportName,
                    java.lang.String runwayName)
Constructor for an AirportRwyID.

Parameters:
runwayID - The AirportRwyID (runway ID).

AirportRwyID

public AirportRwyID(java.lang.String airportRunwayName)
             throws java.lang.Exception
Constructor for an AirportRwyID

Parameters:
airportRunwayName -
Throws:
java.lang.Exception - if not in the "apt/rwy" format

AirportRwyID

public AirportRwyID(AirportID airportID,
                    RunwayID runwayID)
Constructor for an AirportRwyID.

Parameters:
runwayID - The AirportRwyID (runway ID).
Method Detail

equals

public boolean equals(AirportRwyID rwyID2)
Returns boolean indicating whether runway IDs are for the same runway.

Parameters:
rwyID2 - The runway ID to check for equality to this runway ID.
Returns:
Returns whether the runway IDs are for the same runway.

getAirportID

public AirportID getAirportID()
Returns the AirportID of the airport associated with this runway.

Returns:
Returns the AirportID associated with this runway.

getRunwayID

public RunwayID getRunwayID()
Returns the RunwayID representation of the AirportRwyID.

Returns:
Returns runway ID (2 digits and a possible L/R/C designator).

toString

public java.lang.String toString()
Returns the AirportRwyID (unique runway ID) as a String.

Overrides:
toString in class java.lang.Object
Returns:
Returns the AirportRwyID (long runway ID) in string format.