|
||||||||||
| 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.AcTypeFilter
public class AcTypeFilter
AcTypeFilter is an AbstractFilter; it listens for Filterable objects, checks to see if the events are instances of HasAcType (they have an associated aircraft type), and sends the events with a matching aircraft type to the listeners that are registered for that aircraft type. Events that do not have aircraft types associated with them are handled according to how the AbstractFilter passThrough option is set.See the source: AcTypeFilter.java
HasAcType,
AbstractFilter.setPassThrough(boolean),
Serialized Form| Field Summary | |
|---|---|
private java.lang.String |
acTypes
|
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 | |
|---|---|
AcTypeFilter()
Constructs a class that filters objects associated with any aircraft type. |
|
AcTypeFilter(java.lang.String acTypesStr)
Constructs a class that filters certain objects by aircraft; sets list of aircraft types to send to listeners. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAcTypes()
Returns aircraft types that will be sent to listeners. |
void |
handleObject(Filterable evt)
Receives Filterables and sends the ones with the correct aircraft type to the listeners. |
static void |
main(java.lang.String[] argv)
Main method for testing |
void |
setAcTypes(java.lang.String acTypesStr)
Sets the aircraft types that will be sent 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 acTypes
| Constructor Detail |
|---|
public AcTypeFilter()
public AcTypeFilter(java.lang.String acTypesStr)
acTypesStr - The list of ac types to send to listeners.| Method Detail |
|---|
public java.lang.String getAcTypes()
public void setAcTypes(java.lang.String acTypesStr)
acTypesStr - The aircraft types that will be sent 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 | |||||||||