faa.tg.dra.tools
Class AcLatLonGeoMapPointFactory

java.lang.Object
  extended by faa.tg.filters.AbstractFilter
      extended by faa.tg.dra.tools.AcLatLonGeoMapPointFactory
All Implemented Interfaces:
StdWriter, DoesFinal, Filter, FilterableListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener

public class AcLatLonGeoMapPointFactory
extends AbstractFilter
implements StdWriter

This factory turns an aircraft Latitude and Longitude into Geo Map Points See the source AcLatLonMapPointFactory.java

Version:
$Id: AcLatLonGeoMapPointFactory.java,v 1.5 2008/08/07 18:08:50 johnd Exp $
Author:
Sam Fullerton, L-3 Titan
See Also:
Serialized Form

Field Summary
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
static AcesSymbolType DEFAULT_SYMBOL
           
private  boolean isWritable
           
private  java.io.File outputFile
           
private  java.util.Hashtable<Acid,java.util.Vector<Position>> positions
           
private static Namespace SCHEMA_INSTANCE_NAMESPACE
           
(package private) static long serialVersionUID
           
private  AcesSymbolType symbol
           
 
Fields inherited from class faa.tg.filters.AbstractFilter
DEFAULT_PASS_THROUGH, listeners, passThrough
 
Constructor Summary
AcLatLonGeoMapPointFactory(boolean passThrough, java.lang.String outputFile, java.lang.String symbol)
          Constructor
 
Method Summary
 java.lang.Object clone()
          Creates a new Object with the same output file
 void closeAll()
          Flushes output and closes all output files.
 void doFinal()
          Does final activities for writer: flushes output and closes file.
 java.lang.String getOutputFileName()
          Returns the name of the file to write the output to
 void handleObject(Filterable evt)
          handle incoming event
 boolean isWritableFile()
          Returns whether output file is writable
 void setOutputFileName(java.lang.String outputFileName)
          Set output file name Required by StdWriter interface
private  void writePositions()
          Write out geo map xml
 
Methods inherited from class faa.tg.filters.AbstractFilter
addFilterableListener, fire, getPassThrough, removeFilterableListener, setPassThrough, substituteFileVariables
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface faa.tg.filters.Filter
addFilterableListener, fire, getPassThrough, removeFilterableListener, setPassThrough
 

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

outputFile

private java.io.File outputFile

symbol

private AcesSymbolType symbol

DEFAULT_SYMBOL

public static final AcesSymbolType DEFAULT_SYMBOL

positions

private java.util.Hashtable<Acid,java.util.Vector<Position>> positions

SCHEMA_INSTANCE_NAMESPACE

private static final Namespace SCHEMA_INSTANCE_NAMESPACE

isWritable

private boolean isWritable
Constructor Detail

AcLatLonGeoMapPointFactory

public AcLatLonGeoMapPointFactory(boolean passThrough,
                                  java.lang.String outputFile,
                                  java.lang.String symbol)
Constructor

Parameters:
passThrough - - Whether to send non-aircraft objects read in.
outputFile - - where to write GeoMap Xml to.
symbol - - the type of symbol to use to draw point
Method Detail

clone

public java.lang.Object clone()
Creates a new Object with the same output file

Specified by:
clone in interface StdWriter
Overrides:
clone in class java.lang.Object
Returns:
Returns a clone of this object

handleObject

public void handleObject(Filterable evt)
handle incoming event

Specified by:
handleObject in interface StdWriter
Specified by:
handleObject in interface FilterableListener
Specified by:
handleObject in class AbstractFilter
Parameters:
evt - The event containing the Filterable object.

writePositions

private void writePositions()
Write out geo map xml


closeAll

public void closeAll()
Flushes output and closes all output files.

Specified by:
closeAll in interface StdWriter

doFinal

public void doFinal()
Does final activities for writer: flushes output and closes file.

Specified by:
doFinal in interface StdWriter
Specified by:
doFinal in interface DoesFinal

getOutputFileName

public java.lang.String getOutputFileName()
Returns the name of the file to write the output to

Specified by:
getOutputFileName in interface StdWriter
Returns:
A string containing the output destination.

isWritableFile

public boolean isWritableFile()
Returns whether output file is writable

Specified by:
isWritableFile in interface StdWriter
Returns:
Returns whether the file used is writable.

setOutputFileName

public void setOutputFileName(java.lang.String outputFileName)
Set output file name Required by StdWriter interface

Specified by:
setOutputFileName in interface StdWriter
Parameters:
outputFileName - - the name of the file to write the output to