faa.tg.scenario.importer
Class XmlApproachImporter
java.lang.Object
faa.tg.scenario.importer.XmlDomImporter
faa.tg.scenario.importer.ImporterBase<T>
faa.tg.scenario.importer.XmlRouteImporterBase<Route>
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
|
Field Summary |
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
| 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 |
CVS_VERSION_ID
public static final java.lang.String CVS_VERSION_ID
- The CVS Version ID
- See Also:
- Constant Field Values
XmlApproachImporter
public XmlApproachImporter()
- This constructor accepts a reference to an airport Hashtable that is
necessary to create ILS approaches
XmlApproachImporter
public XmlApproachImporter(Airspace airspace)
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 - elementlocBearing - 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>