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)
RealspaceTileBuilder
Sets the layer name
setLayerName
in interface RealspaceTileBuilder
public void setRealspace(Realspace pRealspace)
RealspaceTileBuilder
Sets the three-dimensional business component for tiling
setRealspace
in interface RealspaceTileBuilder
public void setSceneName(java.lang.String pSceneName)
RealspaceTileBuilder
Sets the scene name
setSceneName
in interface RealspaceTileBuilder
public void addListener(TileBuilder.BuildTileProcessListener listener)
TileBuilder
Sets the tiling task execution status listener
addListener
in interface TileBuilder
public void dispose()
TileBuilder
Logs off the current tile generator
dispose
in interface TileBuilder
public java.lang.Runnable getRunnable()
TileBuilder
Returns the Runnable
instance of the tile generator for commiting to the execution in the thread pool.
getRunnable
in interface TileBuilder
public void init()
TileBuilder
Initialize the tile generator
init
in interface TileBuilder
public void setKvStore(KeyValueStore kvStore)
TileBuilder
Sets the key value to the memory, the user saves the white chart information
setKvStore
in interface TileBuilder
public void setOriginalPoint(Point2D pOriginalPoint)
TileBuilder
Sets the origin point of the map tile
setOriginalPoint
in interface TileBuilder
public void setTask(TileTask task, TaskExecutingState executingState)
TileBuilder
Sets the tiling task information and task execution status.
setTask
in interface TileBuilder
public void setTileSize(int pImageSize)
TileBuilder
Sets the tile size
setTileSize
in interface TileBuilder
public void setTileStore(TileStore pTileStore)
TileBuilder
Sets the tiling memory
setTileStore
in interface TileBuilder
public void setTileVersion(java.lang.String tileVersion)
TileBuilder
Sets the tile version
setTileVersion
in interface TileBuilder
public void setFormat(OutputFormat pFormat)
TileBuilder
Sets the tile format
setFormat
in interface TileBuilder
public void run()
run
in interface java.lang.Runnable
protected void updateSpeed(long tileTotal)
protected abstract void buildOneTileMatrix(ScaleBuildConfig scaleBuildConfig, TileMatrix tileMatrix, java.util.concurrent.atomic.AtomicLong tileTotal) throws StoreTileFailedException, RealspaceException, java.io.UnsupportedEncodingException
StoreTileFailedException
RealspaceException
java.io.UnsupportedEncodingException