public abstract class AbstractRealspaceTileBuilder extends java.lang.Object implements RealspaceTileBuilder, java.lang.Runnable
TileBuilder.BuildTileProcessListener| Modifier and Type | Field and Description |
|---|---|
protected TileTask |
currentTask |
protected OutputFormat |
fomat |
protected int |
imageSize |
protected KeyValueStore |
kvStore |
protected java.lang.String |
layerName |
protected TileBuilder.BuildTileProcessListener |
listeners |
protected static LocLogger |
LOCLOGGER_CN |
protected Point2D |
originalPoint |
protected Realspace |
realspace |
protected java.lang.String |
sceneName |
protected TileStore |
store |
protected TaskExecutingState |
taskExecutingState |
protected TileType |
tileType |
| Constructor and Description |
|---|
AbstractRealspaceTileBuilder(CheckedJobBuildConfig pJobConfig, WorkerConfig pWorkerConfig)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(TileBuilder.BuildTileProcessListener listener)
Sets the tiling task execution status listener
|
protected abstract void |
buildOneTileMatrix(ScaleBuildConfig scaleBuildConfig, TileMatrix tileMatrix, java.util.concurrent.atomic.AtomicLong tileTotal) |
void |
dispose()
Logs off the current tile generator
|
KeyValueStore |
getKvStore()
Gets the key-value storage.
|
java.lang.Runnable |
getRunnable()
Returns the
Runnable instance of the tile generator for commiting to the execution in the thread pool. |
void |
init()
Initialize the tile generator
|
void |
run() |
void |
setFormat(OutputFormat pFormat)
Sets the tile format
|
void |
setKvStore(KeyValueStore kvStore)
Sets the key value to the memory, the user saves the white chart information
|
void |
setLayerName(java.lang.String pLayerName)
Sets the layer name
|
void |
setOriginalPoint(Point2D pOriginalPoint)
Sets the origin point of the map tile
|
void |
setRealspace(Realspace pRealspace)
Sets the three-dimensional business component for tiling
|
void |
setSceneName(java.lang.String pSceneName)
Sets the scene name
|
void |
setTask(TileTask task, TaskExecutingState executingState)
Sets the tiling task information and task execution status.
|
void |
setTileSize(int pImageSize)
Sets the tile size
|
void |
setTileStore(TileStore pTileStore)
Sets the tiling memory
|
void |
setTileVersion(java.lang.String tileVersion)
Sets the tile version
|
protected void |
updateSpeed(long tileTotal) |
protected Realspace realspace
protected java.lang.String sceneName
protected java.lang.String layerName
protected TileTask currentTask
protected TaskExecutingState taskExecutingState
protected TileStore store
protected Point2D originalPoint
protected TileType tileType
protected TileBuilder.BuildTileProcessListener listeners
protected int imageSize
protected OutputFormat fomat
protected KeyValueStore kvStore
protected static final LocLogger LOCLOGGER_CN
public AbstractRealspaceTileBuilder(CheckedJobBuildConfig pJobConfig, WorkerConfig pWorkerConfig)
The Constructor.
pJobConfig -pWorkerConfig -public KeyValueStore getKvStore()
Gets the key-value storage.
public void setLayerName(java.lang.String pLayerName)
RealspaceTileBuilderSets the layer name
setLayerName in interface RealspaceTileBuilderpublic void setRealspace(Realspace pRealspace)
RealspaceTileBuilderSets the three-dimensional business component for tiling
setRealspace in interface RealspaceTileBuilderpublic void setSceneName(java.lang.String pSceneName)
RealspaceTileBuilderSets the scene name
setSceneName in interface RealspaceTileBuilderpublic void addListener(TileBuilder.BuildTileProcessListener listener)
TileBuilderSets the tiling task execution status listener
addListener in interface TileBuilderpublic void dispose()
TileBuilderLogs off the current tile generator
dispose in interface TileBuilderpublic java.lang.Runnable getRunnable()
TileBuilderReturns the Runnable instance of the tile generator for commiting to the execution in the thread pool.
getRunnable in interface TileBuilderpublic void init()
TileBuilderInitialize the tile generator
init in interface TileBuilderpublic void setKvStore(KeyValueStore kvStore)
TileBuilderSets the key value to the memory, the user saves the white chart information
setKvStore in interface TileBuilderpublic void setOriginalPoint(Point2D pOriginalPoint)
TileBuilderSets the origin point of the map tile
setOriginalPoint in interface TileBuilderpublic void setTask(TileTask task, TaskExecutingState executingState)
TileBuilderSets the tiling task information and task execution status.
setTask in interface TileBuilderpublic void setTileSize(int pImageSize)
TileBuilderSets the tile size
setTileSize in interface TileBuilderpublic void setTileStore(TileStore pTileStore)
TileBuilderSets the tiling memory
setTileStore in interface TileBuilderpublic void setTileVersion(java.lang.String tileVersion)
TileBuilderSets the tile version
setTileVersion in interface TileBuilderpublic void setFormat(OutputFormat pFormat)
TileBuilderSets the tile format
setFormat in interface TileBuilderpublic void run()
run in interface java.lang.Runnableprotected void updateSpeed(long tileTotal)
protected abstract void buildOneTileMatrix(ScaleBuildConfig scaleBuildConfig, TileMatrix tileMatrix, java.util.concurrent.atomic.AtomicLong tileTotal) throws StoreTileFailedException, RealspaceException, java.io.UnsupportedEncodingException
StoreTileFailedExceptionRealspaceExceptionjava.io.UnsupportedEncodingException