Class BTPrepopulateOssCache<I>
java.lang.Object
overit.geocall.bl.BusinessTask<I>
overit.geocallapp.wfm.core.bl.schedule.task.BTPrepopulateOssCache<I>
- All Implemented Interfaces:
Serializable,Tool
- Direct Known Subclasses:
BTPrepopulateOssCacheCancellation,BTPrepopulateOssCacheScheduling
Generic business task for oss cache prepopulation.
- Since:
- 18.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List<overit.geocallapp.wfm.scheduler.oss.OssPoint[]> buildOssPointList(org.locationtech.jts.geom.Coordinate[] pointList, overit.geocallapp.wfm.scheduler.oss.OssParams param, List<overit.geocallapp.wfm.scheduler.oss.OssParams> ossParams) protected voidcalculateMultiplePointsRoadAndTimeDistance(org.locationtech.jts.geom.Coordinate[] pointList, Long operationCenter, Long ossSpaceId, overit.geocallapp.wfm.scheduler.oss.cache.OssCache ossCache, SchedulingCache schedulingCache, PooledConnection conn) protected LonggetOssSpace(BOWorkShift workshift, BOSchedulingUser resource, OssSpaceCache ossSpaceCache, PooledConnection conn) protected BOSchedulingUsergetResource(Long resource, PoolKit poolKit) protected voidprocessRoute(org.locationtech.jts.geom.Coordinate departure, org.locationtech.jts.geom.Coordinate arrival, Set<SchedulingRoute> processedRoutes, overit.geocallapp.wfm.scheduler.oss.OssParams param, List<overit.geocallapp.wfm.scheduler.oss.OssParams> ossParams, List<overit.geocallapp.wfm.scheduler.oss.OssPoint[]> ossPointsList) protected voidstoreOssResults(Long operationCenter, Long ossSpaceId, List<overit.geocallapp.wfm.scheduler.oss.OssSpResult> results, overit.geocallapp.wfm.scheduler.oss.cache.OssCache ossCache) Methods inherited from class overit.geocall.bl.BusinessTask
body, start, start, startAlone, startInBackground
-
Constructor Details
-
BTPrepopulateOssCache
public BTPrepopulateOssCache()
-
-
Method Details
-
calculateMultiplePointsRoadAndTimeDistance
protected void calculateMultiplePointsRoadAndTimeDistance(org.locationtech.jts.geom.Coordinate[] pointList, Long operationCenter, Long ossSpaceId, overit.geocallapp.wfm.scheduler.oss.cache.OssCache ossCache, SchedulingCache schedulingCache, PooledConnection conn) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
buildOssPointList
-
processRoute
protected void processRoute(org.locationtech.jts.geom.Coordinate departure, org.locationtech.jts.geom.Coordinate arrival, Set<SchedulingRoute> processedRoutes, overit.geocallapp.wfm.scheduler.oss.OssParams param, List<overit.geocallapp.wfm.scheduler.oss.OssParams> ossParams, List<overit.geocallapp.wfm.scheduler.oss.OssPoint[]> ossPointsList) -
getOssSpace
protected Long getOssSpace(BOWorkShift workshift, BOSchedulingUser resource, OssSpaceCache ossSpaceCache, PooledConnection conn) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getResource
protected BOSchedulingUser getResource(Long resource, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
storeOssResults
-