faa.tg.scenario.importer
Class XmlApproachImporter

java.lang.Object
  extended by faa.tg.scenario.importer.XmlDomImporter
      extended by faa.tg.scenario.importer.ImporterBase<T>
          extended by faa.tg.scenario.importer.XmlRouteImporterBase<Route>
              extended by faa.tg.scenario.importer.XmlApproachImporter
All Implemented Interfaces:
Importer<Route>, org.xml.sax.ErrorHandler

public class XmlApproachImporter
extends XmlRouteImporterBase<Route>

Imports XML approach data.

See the source: XmlApproachImporter.java

Version:
$Id: XmlApproachImporter.java,v 3.12 2008/11/05 21:25:25 lonnies Exp $
Author:
Michael E Ross

Nested Class Summary
 
Nested classes/interfaces inherited from class faa.tg.scenario.importer.XmlRouteImporterBase
XmlRouteImporterBase.RouteExtender
 
Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
 
Fields inherited from class faa.tg.scenario.importer.XmlRouteImporterBase
airspace
 
Fields inherited from class faa.tg.scenario.importer.ImporterBase
list
 
Fields inherited from class faa.tg.scenario.importer.XmlDomImporter
jdoc
 
Constructor Summary
XmlApproachImporter()
          This constructor accepts a reference to an airport Hashtable that is necessary to create ILS approaches
XmlApproachImporter(Airspace airspace)
           
 
Method Summary
private  GlideSlope createGlideSlopeFromElement(org.w3c.dom.Element glideslopeElement, TrueBearing locBearing)
          Creates a GlideSlope from the glideSlope element
private  ILS createIlsFromElement(org.w3c.dom.Element ilsElement, Runway rwy, Airport airport)
          Creates an ILS object from the ILS element
private  RNavApproach createRNavApproachFromElement(org.w3c.dom.Element rnavElement, java.lang.String runwayName, TrueBearing rwyBearing)
          Create RNav Approach object from RNav element
 void importApproach(Runway runway, org.w3c.dom.Element approachElement, Airport airport)
          This method reads the given approach element as an approach object and adds it to the given runway
 java.util.Iterator<Route> importObjects(org.w3c.dom.Element rootFixElement)
           
static void main(java.lang.String[] args)
          This class is not independent, it depends on XmlAirportImporter.
 
Methods inherited from class faa.tg.scenario.importer.XmlRouteImporterBase
importAltitudeRestriction, importRoute, importRouteNode, importRouteNoValidCheck
 
Methods inherited from class faa.tg.scenario.importer.ImporterBase
getNext, importObjects, importObjects, parse, parse, parse, size
 
Methods inherited from class faa.tg.scenario.importer.XmlDomImporter
error, fatalError, getBoolean, getElementNamed, getText, getXmlDocument, getXmlDocument, getXmlDocument, getXmlDocument, getXmlDocumentUsingSchema, makeSimpleElement, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CVS_VERSION_ID

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

See Also:
Constant Field Values
Constructor Detail

XmlApproachImporter

public XmlApproachImporter()
This constructor accepts a reference to an airport Hashtable that is necessary to create ILS approaches


XmlApproachImporter

public XmlApproachImporter(Airspace airspace)
Method Detail

importApproach

public void importApproach(Runway runway,
                           org.w3c.dom.Element approachElement,
                           Airport airport)
This method reads the given approach element as an approach object and adds it to the given runway

Parameters:
runway - runway to add the approach object to.

createIlsFromElement

private ILS createIlsFromElement(org.w3c.dom.Element ilsElement,
                                 Runway rwy,
                                 Airport airport)
Creates an ILS object from the ILS element

Parameters:
ilsElement - the element.
rwy - Runway of the ILS.

createGlideSlopeFromElement

private GlideSlope createGlideSlopeFromElement(org.w3c.dom.Element glideslopeElement,
                                               TrueBearing locBearing)
Creates a GlideSlope from the glideSlope element

Parameters:
glideslopeElement - element
locBearing - the TrueBearing to create the Glide Slope object with

createRNavApproachFromElement

private RNavApproach createRNavApproachFromElement(org.w3c.dom.Element rnavElement,
                                                   java.lang.String runwayName,
                                                   TrueBearing rwyBearing)
Create RNav Approach object from RNav element

Parameters:
rnavElement - element.
runwayName -
rwyBearing - The true bearing of the runway.

main

public static void main(java.lang.String[] args)
                 throws ImporterException
This class is not independent, it depends on XmlAirportImporter. If you need to test this class, Run the main() in XmlAirportImporter.

Throws:
ImporterException

importObjects

public java.util.Iterator<Route> importObjects(org.w3c.dom.Element rootFixElement)
Specified by:
importObjects in class ImporterBase<Route>