faa.tg.prep.aces
Class AcesXmlCleaner

java.lang.Object
  extended by faa.tg.prep.aces.AcesXmlCleaner

public class AcesXmlCleaner
extends java.lang.Object

This class integrates FixCleaner and RouteCleaner to produce an XML file (for use by AcesXmlPostProcess) which contains information on: - what fixes to delete - what routes to delete them from See the source AcesXmlCleaner.java

Author:
James Hamilton
See Also:
AcesXmlPostProcess, FixCleaner, RouteCleaner

Field Summary
private  java.util.Vector badFixList
           
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
private  FixCleaner fixCleaner
           
private  RouteCleaner routeCleaner
           
private  java.util.HashMap routeNodeMap
           
 
Constructor Summary
AcesXmlCleaner()
           
 
Method Summary
 void cleanFixes()
          calls FixCleaner.cleanFixes()
 void cleanRoutes()
          calls RouteCleaner.cleanRoutes(badFixList)
 void loadFixes(java.io.File fixFile)
          creates a FixCleaner and calls FixCleaner.loadFixes(fixFile)
 void loadRoutes(java.io.File routeFile)
          creates a RouteCleaner and calls RouteCleaner.loadRoutes(routeFile)
static void main(java.lang.String[] args)
          For stand-alone use.
 void writeDeletionXML(java.io.File outputFile, java.lang.String scenario, java.io.File fixFile, java.io.File routeFile)
          Writes out XML (to be used by AcesXmlPostProcess) that contains information on what fixes to delete and where those fixes occur in the routes (and hence where to delete them from the route definition as well).
 
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

fixCleaner

private FixCleaner fixCleaner

routeCleaner

private RouteCleaner routeCleaner

badFixList

private java.util.Vector badFixList

routeNodeMap

private java.util.HashMap routeNodeMap
Constructor Detail

AcesXmlCleaner

public AcesXmlCleaner()
Method Detail

loadFixes

public void loadFixes(java.io.File fixFile)
creates a FixCleaner and calls FixCleaner.loadFixes(fixFile)

Parameters:
fixFile - the xml file containing the original ACES fix data

loadRoutes

public void loadRoutes(java.io.File routeFile)
                throws java.io.IOException
creates a RouteCleaner and calls RouteCleaner.loadRoutes(routeFile)

Parameters:
routeFile - the xml file containing the original ACES route data
Throws:
java.io.IOException

cleanFixes

public void cleanFixes()
calls FixCleaner.cleanFixes()


cleanRoutes

public void cleanRoutes()
calls RouteCleaner.cleanRoutes(badFixList)


writeDeletionXML

public void writeDeletionXML(java.io.File outputFile,
                             java.lang.String scenario,
                             java.io.File fixFile,
                             java.io.File routeFile)
Writes out XML (to be used by AcesXmlPostProcess) that contains information on what fixes to delete and where those fixes occur in the routes (and hence where to delete them from the route definition as well).

Parameters:
outputFile - the file to output the XML to
scenario - the location of scenario directory
fixFile - the file the fix data was read from
routeFile - the file the route data was read from

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
For stand-alone use. -s the scenario directory name. E.g., use "drvsm3_zdc" if your scenario directory is "/tgf/data/drvsm3_zdc" -r the XML file which contains the unmodified ACES away data -f the XML file which contains the unmodified ACES fix data -o the file to which the resulting XML is to be output

Throws:
java.io.IOException