Package com.luciad.fusion.engine
Interface ILfnEngineSession
- All Superinterfaces:
AutoCloseable
,Closeable
The session groups the information needed to drive the fusion engine.
The session provides a tile set with the source data, and the ID of the coverage to be populated
by the fusion engine.
Note: before the V2013.1 release, you needed an instance of this interface in order to create an
See the migration details for more information.
ALfnEngine
instance. As of V2013.1, the LuciadFusion API user should not need to create instances of
this interface anymore. You can create an engine for a tile store and coverage ID (see
TLfnEngineFactory#createEngine
).
The returned engine still contains an ILfnEngineSession
.See the migration details for more information.
- Since:
- 10.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the session.long
Gets the checkpoint interval in milliseconds.List
<? extends ALfnAssetMetadata> Gets the metadata of the source assets for this session.Gets the name of the coverage in the source tile set.Gets the tile format of the source data.Gets the tile set that produces tiles for the source data.Gets the target coverage metadata for this session.Gets the tile combiner for this coverage.Gets the codec for the tile data.Returns theTile Store
that is associated with this session.
-
Method Details
-
getSourceAssetMetadatas
List<? extends ALfnAssetMetadata> getSourceAssetMetadatas()Gets the metadata of the source assets for this session.- Returns:
- the metadata of the source assets for this session
-
getTargetCoverageMetadata
ALfnCoverageMetadata getTargetCoverageMetadata()Gets the target coverage metadata for this session.- Returns:
- the target coverage metadata for this session, must never be
null
-
getSourceTileSet
Gets the tile set that produces tiles for the source data.- Returns:
- the source tile set
- Throws:
IOException
- when the source data cannot be accessed
-
getSourceCoverageName
String getSourceCoverageName()Gets the name of the coverage in the source tile set.- Returns:
- the source coverage name
-
getSourceFormat
TLcdEarthTileFormat getSourceFormat()Gets the tile format of the source data.- Returns:
- the tile format
-
getTileDataCodec
ILcdEarthTileDataCodec getTileDataCodec()Gets the codec for the tile data. The codec must be able to encode tiles withgetSourceFormat()
as the tile format.- Returns:
- the data codec
-
getTileCombiner
ILcdEarthTileCombiner getTileCombiner()Gets the tile combiner for this coverage. The combiner must be able to combine tiles withgetSourceFormat()
as the tile format. A return value ofnull
from theILcdEarthTileCombiner.combineTiles(com.luciad.earth.tileset.ALcdEarthTile[][])
method indicates that the tile should not be combined but produced from the source tile set instead.- Returns:
- the tile combiner for this coverage
-
getCheckpointInterval
long getCheckpointInterval()Gets the checkpoint interval in milliseconds.Special value
-1
indicates that no checkpoints should be saved, not even when the engine session is cancelled.- Returns:
- an interval in milliseconds
-
close
Closes the session. This should be called when the session is no longer needed, e.g. the fusion has finished. The session will release its internal resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- when resources can not be closed
-
getTileStore
ALfnTileStore getTileStore()Returns theTile Store
that is associated with this session.- Returns:
- The Tile Store associated with this session, never
null
- Since:
- 2013.0
-