public abstract class ALcdASDIDecoder extends Object
TLcdASDIModelDecoder
and
TLcdASDILiveDecoder
.
The Federal Aviation Administration (FAA) provides
airlines and other aviation-related organizations with access to
near real-time air traffic data from the National Airspace System (NAS)
through the ASDI feed. TLcdASDIModelDecoder
and
TLcdASDILiveDecoder
are decoders that can handle messages
from the ASDI feed.
This base class contains the common part between the decoders, and allows to:
setStartTime(long)
.
setMessageFilter(ILcdASDIMessageFilter)
.
Modifier and Type | Method and Description |
---|---|
ILcdASDIMessageFilter |
getMessageFilter()
Returns the filter used for filtering out messages from the ASDI message feed.
|
long |
getStartTime()
Returns the start time of the ASDI message feed.
|
void |
setMessageFilter(ILcdASDIMessageFilter aFilter)
Sets the filter to use for filtering out messages from the ASDI message feed.
|
void |
setStartTime(long aStartTime)
Sets the start time of the ASDI message feed.
|
public long getStartTime()
setStartTime(long)
for details.public void setStartTime(long aStartTime)
The start time is used to create absolute times from the relative time info in the ASDI messages. For instance, ASDI messages come with a header containing message day, hour, minute and second, but no absolute date. The start time is used to create absolute messages times.
If no start time is set, the current time is used as start time.
aStartTime
- the start time of the ASDI message feed, it is
specified as a value in milliseconds since 1970, similar to Date.getTime()
. Set -1 to use now as the start time.getStartTime()
public ILcdASDIMessageFilter getMessageFilter()
ILcdASDIMessageFilter
used for filtering out messages from the ASDI message feed.setMessageFilter(ILcdASDIMessageFilter aFilter)
public void setMessageFilter(ILcdASDIMessageFilter aFilter)
aFilter
- The ILcdASDIMessageFilter
to use for filtering out messages from the ASDI message feed.getMessageFilter()