public class TLcyASTERIXDecoderAddOn extends ALcyPreferencesAddOn
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:
TLcyPreviewAddOn
.TLcyLspASTERIXFormatAddOn
is responsible for visualizing this data on a Lightspeed view.TLcdASTERIXLiveModelDecoder
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:
ILcdInputStreamFactory
as service.
This input stream factory is responsible for creating input streams for URI's which are accepted by the TLcdASTERIXLiveModelDecoder
.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 and Description |
---|
TLcyASTERIXDecoderAddOn()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected TLcyPreferencesTool |
createPreferencesTool()
Creates the
TLcyPreferencesTool 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.
|
getLongPrefix, getLucyEnv, getPreferences, getPreferencesTool, getShortPrefix
getConfigSourceName, getDisplayName, setConfigSourceName, setDisplayName
public void plugInto(ILcyLucyEnv aLucyEnv)
ALcyPreferencesAddOn
plugInto
in class ALcyPreferencesAddOn
aLucyEnv
- the Lucy environment to plug intoALcyAddOn.unplugFrom(com.luciad.lucy.ILcyLucyEnv)
public void unplugFrom(ILcyLucyEnv aLucyEnv)
ALcyPreferencesAddOn
unplugFrom
in class ALcyPreferencesAddOn
aLucyEnv
- the Lucy environmentALcyAddOn.plugInto(com.luciad.lucy.ILcyLucyEnv)
protected TLcyPreferencesTool createPreferencesTool()
ALcyPreferencesAddOn
Creates the TLcyPreferencesTool
to be used by this add-on. Overwriting this method
for example allows to register additional ILcyPropertyConverter
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 as
String
, int
, double
, etc.
The default implementation creates a new tool based on the ALcyAddOn.getConfigSourceName()
and
the add-on's prefixes.
createPreferencesTool
in class ALcyPreferencesAddOn
TLcyPreferencesTool
.