|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.filters.AbstractFilter
faa.tg.filters.AcidFilter
public class AcidFilter
AcidFilter listens for Filterable objects, checks to see if the events are instances of HasAcid or HasBeaconCode and sends the events with a matching aircraft ID or beacon code to listeners. If DraStore is active and has received an AircraftState for the aircraft, then listeners do not need to specify both the aircraft ID to get events that implement only HasAcid, and the beacon code to get events that implement only HasBeaconCode: specifying either will get Filterables implementing one or both interfaces.See the source: AcidFilter.javaEvents that do not have aircraft IDs associated with them are handled according to how the AbstractFilter passThrough option is set.
HasAcid,
AbstractFilter.setPassThrough(boolean),
Serialized Form| Field Summary | |
|---|---|
private java.lang.String |
acSearchStr
|
private java.lang.String |
acWildSearchStr
|
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 | |
|---|---|
AcidFilter()
Constructs a class that filters Filterable objects by aircraft. |
|
AcidFilter(Acid singleAcid)
Constructs a class that filters objects associated with an aircraft by ACID or beacon code; specifies an ACID. |
|
AcidFilter(boolean passThrough)
Constructs a class that filters objects associated with an aircraft by ACID or beacon code; sets the passThrough indicator. |
|
AcidFilter(java.lang.String acSearchStr)
Constructs a class that filters objects associated with an aircraft by ACID or beacon code; specifies the ACID/beacon code search string to be used. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAcSearchStr()
Returns String of ACIDs/beacon codes of aircraft to send to listeners. |
void |
handleObject(Filterable evt)
Receives Filterables and sends the ones with the correct aircraft ID to the listeners. |
static void |
main(java.lang.String[] argv)
Main method for testing |
void |
setAcSearchStr(java.lang.String acSearchStr)
Sets String containing ACIDs and/or beacon codes to send to listeners. |
| 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 |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
private java.lang.String acSearchStr
private java.lang.String acWildSearchStr
| Constructor Detail |
|---|
public AcidFilter()
public AcidFilter(boolean passThrough)
passThrough - Boolean indicating if to send objects without Acids.public AcidFilter(Acid singleAcid)
singleAcid - Single Acid to notify listeners of.public AcidFilter(java.lang.String acSearchStr)
acSearchStr - List of ACIDs or beacon codes to notify listeners of.| Method Detail |
|---|
public java.lang.String getAcSearchStr()
public void setAcSearchStr(java.lang.String acSearchStr)
acSearchStr - The requested list of aircraft to send to listeners.public void handleObject(Filterable evt)
handleObject in interface FilterableListenerhandleObject in class AbstractFilterevt - The Filterable object.AbstractFilter.setPassThrough(boolean)public static void main(java.lang.String[] argv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||