public class DefaultJobInfoPREProcessor extends java.lang.Object implements JobInfoPREProcessor
Job information preprocessor implementation class
Constructor and Description |
---|
DefaultJobInfoPREProcessor()
The Constructor.
|
DefaultJobInfoPREProcessor(MapBuilder mapBuilder, RealspaceBuilder realspaceBuilder, TileStorePreProcessor tileStorePreProcessor, MapStatusHashcodePreProcessor hashcodeProProcessor)
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Rectangle2D |
calcuateTileBounds(double scaleDenominator, Unit unit, Point2D originalPoint, int tileSize)
Take the 0th piece of the picture's bounds under a specific scale
|
protected JobBuildConfig |
getCheckedJobInfo(JobInfo jobInfo) |
protected static long |
getCount(double originalLocation, double tileLength, double benginLocation, double endLocation, boolean isX) |
protected MapParameter |
getMapState(Map map, MapParameter tempParam) |
protected TileJobScaleInfo |
getTileJobScaleInfo(Map map, double scaleDenominator, int epsgCode, int tileSize, MapParameter defaultParam) |
protected TileJobScaleInfo |
getTileJobScaleInfo(Unit unit, double scaleDenominator, Point2D orginalPoint, int tileSize) |
JobBuildConfig |
process(JobInfoPREProcessorParameter parameter)
Handle Job information
|
protected void |
processByMapComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, MapCompConnInfo dataConnInfo)
Initialize tasks based on map components
|
protected void |
processByMapComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, Map map, MapCompConnInfo dataConnInfo) |
protected void |
processByRealspaceComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, Realspace realspace) |
protected void |
processByRealspaceComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, RealspaceCompConnInfo dataConnInfo)
Initialize tasks based on 3D components
|
void |
setMapBuilder(MapBuilder mapBuilder)
Sets MapBuilder
|
void |
setMapStatusHashcodePreProcessor(MapStatusHashcodePreProcessor mapStatusHashcodePreProcessor)
Sets MapStatusHashcodePreProcessor
|
void |
setRealspaceBuilder(RealspaceBuilder realspaceBuilder)
Sets RealspaceBuilder
|
void |
setRestContext(RestContext restContext)
Sets the context information.
|
protected void |
setScaleBuildConfigAndJobState(Map map, JobBuildConfig jobBuildConfig, MapParameter defaultParam) |
protected void |
setScaleBuildConfigAndJobState(Realspace realspace, JobBuildConfig jobBuildConfig, Unit layerPrjUnit) |
protected void |
setScalesOrResolutions(JobBuildConfig jobBuildConfig, Map map, MapParameter defaultMapParam)
Adds the resolution information according to the scale, or supplements the scale information according to the resolution.
|
protected void |
setScalesOrResolutions(JobBuildConfig jobBuildConfig, Unit unit) |
void |
setTileStorePreProcessor(TileStorePreProcessor tileStorePreProcessor)
Sets ileStorePreProcessor
|
public DefaultJobInfoPREProcessor()
The Constructor.
public DefaultJobInfoPREProcessor(MapBuilder mapBuilder, RealspaceBuilder realspaceBuilder, TileStorePreProcessor tileStorePreProcessor, MapStatusHashcodePreProcessor hashcodeProProcessor)
The Constructor.
mapBuilder
-realspaceBuilder
-tileStorePreProcessor
-hashcodeProProcessor
-public void setRestContext(RestContext restContext)
JobInfoPREProcessor
Sets the context information.
setRestContext
in interface JobInfoPREProcessor
public JobBuildConfig process(JobInfoPREProcessorParameter parameter)
JobInfoPREProcessor
Handle Job information
process
in interface JobInfoPREProcessor
protected void processByRealspaceComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, RealspaceCompConnInfo dataConnInfo)
oProcess
-jobBuildConfig
-protected void processByRealspaceComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, Realspace realspace)
protected void processByMapComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, MapCompConnInfo dataConnInfo)
oProcess
-jobBuildConfig
-protected void processByMapComponent(JobInfo toProcess, JobBuildConfig jobBuildConfig, Map map, MapCompConnInfo dataConnInfo)
protected void setScalesOrResolutions(JobBuildConfig jobBuildConfig, Map map, MapParameter defaultMapParam)
Adds the resolution information according to the scale, or supplements the scale information according to the resolution.
jobBuildConfig
-map
-defaultMapParam
-protected void setScalesOrResolutions(JobBuildConfig jobBuildConfig, Unit unit)
protected Rectangle2D calcuateTileBounds(double scaleDenominator, Unit unit, Point2D originalPoint, int tileSize)
sceneName
-layerName
-realspace
-scaleDenominator
-protected MapParameter getMapState(Map map, MapParameter tempParam)
protected JobBuildConfig getCheckedJobInfo(JobInfo jobInfo)
protected void setScaleBuildConfigAndJobState(Map map, JobBuildConfig jobBuildConfig, MapParameter defaultParam)
protected void setScaleBuildConfigAndJobState(Realspace realspace, JobBuildConfig jobBuildConfig, Unit layerPrjUnit)
protected TileJobScaleInfo getTileJobScaleInfo(Map map, double scaleDenominator, int epsgCode, int tileSize, MapParameter defaultParam)
protected TileJobScaleInfo getTileJobScaleInfo(Unit unit, double scaleDenominator, Point2D orginalPoint, int tileSize)
protected static long getCount(double originalLocation, double tileLength, double benginLocation, double endLocation, boolean isX)
public void setMapBuilder(MapBuilder mapBuilder)
JobInfoPREProcessor
Sets MapBuilder
setMapBuilder
in interface JobInfoPREProcessor
public void setRealspaceBuilder(RealspaceBuilder realspaceBuilder)
JobInfoPREProcessor
Sets RealspaceBuilder
setRealspaceBuilder
in interface JobInfoPREProcessor
public void setTileStorePreProcessor(TileStorePreProcessor tileStorePreProcessor)
JobInfoPREProcessor
Sets ileStorePreProcessor
setTileStorePreProcessor
in interface JobInfoPREProcessor
public void setMapStatusHashcodePreProcessor(MapStatusHashcodePreProcessor mapStatusHashcodePreProcessor)
JobInfoPREProcessor
Sets MapStatusHashcodePreProcessor
setMapStatusHashcodePreProcessor
in interface JobInfoPREProcessor