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
TLcyLspASTERIXFormatAddOnis 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
ILcdInputStreamFactoryas 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TLcyPreferencesToolCreates theTLcyPreferencesToolto be used by this add-on.voidplugInto(ILcyLucyEnv aLucyEnv) Creates and plugs in the add-on's preferences tool.voidunplugFrom(ILcyLucyEnv aLucyEnv) Unplugs the add-on's preferences tool.Methods inherited from class com.luciad.lucy.addons.ALcyPreferencesAddOn
getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefixMethods 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:ALcyPreferencesAddOnCreates and plugs in the add-on's preferences tool.- Overrides:
plugIntoin classALcyPreferencesAddOn- Parameters:
aLucyEnv- the Lucy environment to plug into- See Also:
-
unplugFrom
Description copied from class:ALcyPreferencesAddOnUnplugs the add-on's preferences tool.- Overrides:
unplugFromin classALcyPreferencesAddOn- Parameters:
aLucyEnv- the Lucy environment- See Also:
-
createPreferencesTool
Description copied from class:ALcyPreferencesAddOnCreates the
TLcyPreferencesToolto be used by this add-on. Overwriting this method for example allows to register additionalILcyPropertyConverters 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:
createPreferencesToolin classALcyPreferencesAddOn- Returns:
- the created
TLcyPreferencesTool.
-