com.supermap.services.components.impl
Class AbstractRealspaceTileBuilder
- java.lang.Object
-
- com.supermap.services.components.impl.AbstractRealspaceTileBuilder
-
- All Implemented Interfaces:
- RealspaceTileBuilder, TileBuilder, java.lang.Runnable
- Direct Known Subclasses:
- DefaultRealspaceTileBuilder
public abstract class AbstractRealspaceTileBuilder extends java.lang.Object implements RealspaceTileBuilder, java.lang.Runnable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.supermap.services.components.TileBuilder
TileBuilder.BuildTileProcessListener
-
-
Field Summary
Fields Modifier and Type Field and Description protected TileTaskcurrentTaskprotected OutputFormatfomatprotected intimageSizeprotected KeyValueStorekvStoreprotected java.lang.StringlayerNameprotected TileBuilder.BuildTileProcessListenerlistenersprotected static LocLoggerLOCLOGGER_CNprotected Point2DoriginalPointprotected Realspacerealspaceprotected java.lang.StringsceneNameprotected TileStorestoreprotected TaskExecutingStatetaskExecutingStateprotected TileTypetileType
-
Constructor Summary
Constructors Constructor and Description AbstractRealspaceTileBuilder(CheckedJobBuildConfig pJobConfig, WorkerConfig pWorkerConfig)The Constructor.
-
Method Summary
Methods Modifier and Type Method and Description voidaddListener(TileBuilder.BuildTileProcessListener listener)Sets the tiling task execution status listenerprotected abstract voidbuildOneTileMatrix(ScaleBuildConfig scaleBuildConfig, TileMatrix tileMatrix, java.util.concurrent.atomic.AtomicLong tileTotal)voiddispose()Logs off the current tile generatorKeyValueStoregetKvStore()Gets the key-value storage.java.lang.RunnablegetRunnable()Returns theRunnableinstance of the tile generator for commiting to the execution in the thread pool.voidinit()Initialize the tile generatorvoidrun()voidsetFormat(OutputFormat pFormat)Sets the tile formatvoidsetKvStore(KeyValueStore kvStore)Sets the key value to the memory, the user saves the white chart informationvoidsetLayerName(java.lang.String pLayerName)Sets the layer namevoidsetOriginalPoint(Point2D pOriginalPoint)Sets the origin point of the map tilevoidsetRealspace(Realspace pRealspace)Sets the three-dimensional business component for tilingvoidsetSceneName(java.lang.String pSceneName)Sets the scene namevoidsetTask(TileTask task, TaskExecutingState executingState)Sets the tiling task information and task execution status.voidsetTileSize(int pImageSize)Sets the tile sizevoidsetTileStore(TileStore pTileStore)Sets the tiling memoryvoidsetTileVersion(java.lang.String tileVersion)Sets the tile versionprotected voidupdateSpeed(long tileTotal)
-
-
-
Field Detail
-
realspace
protected Realspace realspace
-
sceneName
protected java.lang.String sceneName
-
layerName
protected java.lang.String layerName
-
currentTask
protected TileTask currentTask
-
taskExecutingState
protected TaskExecutingState taskExecutingState
-
store
protected TileStore store
-
originalPoint
protected Point2D originalPoint
-
tileType
protected TileType tileType
-
listeners
protected TileBuilder.BuildTileProcessListener listeners
-
imageSize
protected int imageSize
-
fomat
protected OutputFormat fomat
-
kvStore
protected KeyValueStore kvStore
-
LOCLOGGER_CN
protected static final LocLogger LOCLOGGER_CN
-
-
Constructor Detail
-
AbstractRealspaceTileBuilder
public AbstractRealspaceTileBuilder(CheckedJobBuildConfig pJobConfig, WorkerConfig pWorkerConfig)
The Constructor.
- Parameters:
pJobConfig-pWorkerConfig-
-
-
Method Detail
-
getKvStore
public KeyValueStore getKvStore()
Gets the key-value storage.
- Returns:
-
setLayerName
public void setLayerName(java.lang.String pLayerName)
Description copied from interface:RealspaceTileBuilderSets the layer name
- Specified by:
setLayerNamein interfaceRealspaceTileBuilder
-
setRealspace
public void setRealspace(Realspace pRealspace)
Description copied from interface:RealspaceTileBuilderSets the three-dimensional business component for tiling
- Specified by:
setRealspacein interfaceRealspaceTileBuilder
-
setSceneName
public void setSceneName(java.lang.String pSceneName)
Description copied from interface:RealspaceTileBuilderSets the scene name
- Specified by:
setSceneNamein interfaceRealspaceTileBuilder
-
addListener
public void addListener(TileBuilder.BuildTileProcessListener listener)
Description copied from interface:TileBuilderSets the tiling task execution status listener
- Specified by:
addListenerin interfaceTileBuilder
-
dispose
public void dispose()
Description copied from interface:TileBuilderLogs off the current tile generator
- Specified by:
disposein interfaceTileBuilder
-
getRunnable
public java.lang.Runnable getRunnable()
Description copied from interface:TileBuilderReturns the
Runnableinstance of the tile generator for commiting to the execution in the thread pool.- Specified by:
getRunnablein interfaceTileBuilder- Returns:
-
init
public void init()
Description copied from interface:TileBuilderInitialize the tile generator
- Specified by:
initin interfaceTileBuilder
-
setKvStore
public void setKvStore(KeyValueStore kvStore)
Description copied from interface:TileBuilderSets the key value to the memory, the user saves the white chart information
- Specified by:
setKvStorein interfaceTileBuilder
-
setOriginalPoint
public void setOriginalPoint(Point2D pOriginalPoint)
Description copied from interface:TileBuilderSets the origin point of the map tile
- Specified by:
setOriginalPointin interfaceTileBuilder
-
setTask
public void setTask(TileTask task, TaskExecutingState executingState)
Description copied from interface:TileBuilderSets the tiling task information and task execution status.
- Specified by:
setTaskin interfaceTileBuilder
-
setTileSize
public void setTileSize(int pImageSize)
Description copied from interface:TileBuilderSets the tile size
- Specified by:
setTileSizein interfaceTileBuilder
-
setTileStore
public void setTileStore(TileStore pTileStore)
Description copied from interface:TileBuilderSets the tiling memory
- Specified by:
setTileStorein interfaceTileBuilder
-
setTileVersion
public void setTileVersion(java.lang.String tileVersion)
Description copied from interface:TileBuilderSets the tile version
- Specified by:
setTileVersionin interfaceTileBuilder
-
setFormat
public void setFormat(OutputFormat pFormat)
Description copied from interface:TileBuilderSets the tile format
- Specified by:
setFormatin interfaceTileBuilder
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
updateSpeed
protected void updateSpeed(long tileTotal)
-
buildOneTileMatrix
protected abstract void buildOneTileMatrix(ScaleBuildConfig scaleBuildConfig, TileMatrix tileMatrix, java.util.concurrent.atomic.AtomicLong tileTotal) throws StoreTileFailedException, RealspaceException, java.io.UnsupportedEncodingException
- Throws:
StoreTileFailedExceptionRealspaceExceptionjava.io.UnsupportedEncodingException
-
-