faa.tg.aircraft.deadreckon.tmf
Class AcCountFilter

java.lang.Object
  extended by faa.tg.filters.AbstractFilter
      extended by faa.tg.aircraft.deadreckon.tmf.AcCountFilter
All Implemented Interfaces:
Filter, FilterableListener, FlightActivatedListener, FlightTerminatedListener, java.io.Serializable, java.util.EventListener

public class AcCountFilter
extends AbstractFilter
implements FlightActivatedListener, FlightTerminatedListener

 AcCountFilter is used by the TmfAircraftListener to limit the number of
 targets procesed.  This is necessary to prevent any simulator from
 operating above capacity.
 
See the source: AcCountFilter.java

Version:
$Id: AcCountFilter.java,v 3.3 2008/10/20 20:50:10 lykensj Exp $
Author:
jimm
See Also:
Serialized Form

Field Summary
private  int acMax
          max number of a/c to pass
private  java.util.Hashtable<java.lang.String,Acid> acTable
          The list of a/c to pass
static java.lang.String CVS_VERSION_ID
          The CVS Version ID
(package private) static long serialVersionUID
           
 
Fields inherited from class faa.tg.filters.AbstractFilter
DEFAULT_PASS_THROUGH, listeners, passThrough
 
Constructor Summary
AcCountFilter(int max)
          Constructor
 
Method Summary
 void addAircraft(Acid acid)
          Method addAircraft ...
 void handleFlightActivatedEvent(FlightActivatedEvent fae)
          Method handleFlightActivatedEvent ...
 void handleFlightTerminatedEvent(FlightTerminatedEvent fte)
          Method handleFlightTerminatedEvent ...
 void handleObject(Filterable event)
          handleObject recieves events to filter on
 void removeAircraft(Acid acid)
          remove and A/C from processing table
 void setMax(int acMax)
          Set or change maximum number of A/C
 
Methods inherited from class faa.tg.filters.AbstractFilter
addFilterableListener, fire, getPassThrough, removeFilterableListener, setPassThrough, substituteFileVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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

acTable

private java.util.Hashtable<java.lang.String,Acid> acTable
The list of a/c to pass


acMax

private int acMax
max number of a/c to pass

Constructor Detail

AcCountFilter

public AcCountFilter(int max)
Constructor

Parameters:
max - the maximum number of A/C to process
Method Detail

setMax

public void setMax(int acMax)
Set or change maximum number of A/C

Parameters:
acMax -

handleFlightActivatedEvent

public void handleFlightActivatedEvent(FlightActivatedEvent fae)
Method handleFlightActivatedEvent ...

Specified by:
handleFlightActivatedEvent in interface FlightActivatedListener
Parameters:
fae -

handleFlightTerminatedEvent

public void handleFlightTerminatedEvent(FlightTerminatedEvent fte)
Method handleFlightTerminatedEvent ...

Specified by:
handleFlightTerminatedEvent in interface FlightTerminatedListener
Parameters:
fte -

removeAircraft

public void removeAircraft(Acid acid)
remove and A/C from processing table

Parameters:
acid - the acid of the A/C to remove

addAircraft

public void addAircraft(Acid acid)
Method addAircraft ...

Parameters:
acid -

handleObject

public void handleObject(Filterable event)
handleObject recieves events to filter on

Specified by:
handleObject in interface FilterableListener
Specified by:
handleObject in class AbstractFilter
Parameters:
event -