Package com.luciad.format.asdi
Class ALcdASDIDecoder
java.lang.Object
com.luciad.format.asdi.ALcdASDIDecoder
- Direct Known Subclasses:
TLcdASDILiveDecoder,TLcdASDIModelDecoder
Base class for both ASDI decoders:
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:
- Specify the start time of the ASDI feed, see
setStartTime(long). - Specify the filter to filter out messages
from the ASDI feed, see
setMessageFilter(ILcdASDIMessageFilter).
-
Method Summary
Modifier and TypeMethodDescriptionReturns the filter used for filtering out messages from the ASDI message feed.longReturns the start time of the ASDI message feed.voidsetMessageFilter(ILcdASDIMessageFilter aFilter) Sets the filter to use for filtering out messages from the ASDI message feed.voidsetStartTime(long aStartTime) Sets the start time of the ASDI message feed.
-
Method Details
-
getStartTime
public long getStartTime()Returns the start time of the ASDI message feed. SeesetStartTime(long)for details.- Returns:
- The start time of the ASDI message feed, -1 by default.
-
setStartTime
public void setStartTime(long aStartTime) Sets the start time of the ASDI message feed.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.
- Parameters:
aStartTime- the start time of the ASDI message feed, it is specified as a value in milliseconds since 1970, similar toDate.getTime(). Set -1 to use now as the start time.- See Also:
-
getMessageFilter
Returns the filter used for filtering out messages from the ASDI message feed.- Returns:
- The
ILcdASDIMessageFilterused for filtering out messages from the ASDI message feed. - See Also:
-
setMessageFilter
Sets the filter to use for filtering out messages from the ASDI message feed.- Parameters:
aFilter- TheILcdASDIMessageFilterto use for filtering out messages from the ASDI message feed.- See Also:
-