Package com.luciad.lucy.addons.asterix
Class TLcyASTERIXDecoderAddOn
java.lang.Object
com.luciad.lucy.addons.ALcyAddOn
com.luciad.lucy.addons.ALcyPreferencesAddOn
com.luciad.lucy.addons.asterix.TLcyASTERIXDecoderAddOn
This add-on provides support for ASTERIX models, and allows to visualize those on a GXY map. Note that you can only use this add-on if you also have the ASTERIX Industry Specific Component.
This add-on provides:
- Model decoders to decode static ASTERIX data.
- Model decoders to decode ASTERIX data from a live stream (see below for more information).
- Simulator model factories which allow to replay ASTERIX data by using the
TLcyPreviewAddOn
. - Layer factories to visualize all this data on a GXY view.
The
TLcyLspASTERIXFormatAddOn
is responsible for visualizing this data on a Lightspeed view.
Visualizing live ASTERIX data
This add-on plugs in aTLcdASTERIXLiveModelDecoder
which allows to connect to live
ASTERIX data streams.
There are still two additional steps that need to be taken before you can visualize such a data stream on the map:
- You need to register an
ILcdInputStreamFactory
as service. This input stream factory is responsible for creating input streams for URI's which are accepted by theTLcdASTERIXLiveModelDecoder
. - Offer UI to the user to connect to the live stream. This is not strictly needed, as the user can for example drag-and-drop an URI to the map.
TLcdASTERIXLiveModelDecoder
, the ILcdModel.dispose()
method should be called on
those live models when the model is no longer used.
If not, the InputStream
will remain open and connected to the ASTERIX data live stream.
Currently there is nothing present in Lucy to dispose a model, as Lucy has no mechanism to know when a model is no longer
in use.
If your custom Lucy-based application connects to a live ASTERIX data stream, it is recommended you also add logic to dispose
of the ASTERIX model when you are no longer using it.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TLcyPreferencesTool
Creates theTLcyPreferencesTool
to be used by this add-on.void
plugInto
(ILcyLucyEnv aLucyEnv) Creates and plugs in the add-on's preferences tool.void
unplugFrom
(ILcyLucyEnv aLucyEnv) Unplugs the add-on's preferences tool.Methods inherited from class com.luciad.lucy.addons.ALcyPreferencesAddOn
getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefix
Methods inherited from class com.luciad.lucy.addons.ALcyAddOn
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
-
Constructor Details
-
TLcyASTERIXDecoderAddOn
public TLcyASTERIXDecoderAddOn()Default constructor
-
-
Method Details
-
plugInto
Description copied from class:ALcyPreferencesAddOn
Creates and plugs in the add-on's preferences tool.- Overrides:
plugInto
in classALcyPreferencesAddOn
- Parameters:
aLucyEnv
- the Lucy environment to plug into- See Also:
-
unplugFrom
Description copied from class:ALcyPreferencesAddOn
Unplugs the add-on's preferences tool.- Overrides:
unplugFrom
in classALcyPreferencesAddOn
- Parameters:
aLucyEnv
- the Lucy environment- See Also:
-
createPreferencesTool
Description copied from class:ALcyPreferencesAddOn
Creates the
TLcyPreferencesTool
to be used by this add-on. Overwriting this method for example allows to register additionalILcyPropertyConverter
s for (complex) custom properties, to make sure they are correctly decoded from the add-on's configuration file and/or saved to the workspace. Note that this isn't required for simple properties such asString
,int
,double
, etc.The default implementation creates a new tool based on the
ALcyAddOn.getConfigSourceName()
and the add-on's prefixes.- Overrides:
createPreferencesTool
in classALcyPreferencesAddOn
- Returns:
- the created
TLcyPreferencesTool
.
-