Class BTPredictionDuration
java.lang.Object
overit.geocall.bl.BusinessTask<Void>
overit.geocallapp.wfm.ai.bl.processing.task.BTBasicAIProcess
overit.geocallapp.wfm.ai.bl.processing.task.BTBasicPrediction
overit.geocallapp.wfm.ai.bl.duration.prediction.task.BTPredictionDuration
- All Implemented Interfaces:
Serializable,Tool
- Direct Known Subclasses:
BTTestPredictionDuration
- Since:
- 9.2
- See Also:
- GCApi:
- task
-
Field Summary
FieldsFields inherited from class overit.geocallapp.wfm.ai.bl.processing.task.BTBasicPrediction
allLogs, api, FIELD_END_DATE, FIELD_OPERATIONS, FIELD_START_DATE, MAX_ROWS_REST_REQUEST, REPORT_FILENAMEFields inherited from class overit.geocallapp.wfm.ai.bl.processing.task.BTBasicAIProcess
algorithmName, asyncQueueMode, configurationParamsHistory, elaborationHistory, factory, filesToDelete, headers, instanceType, modelName, resourcesFolder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FilebuildFileToTransfer(DBView operations, PoolKit pk) Build the File object that must be loaded on AWSprotected DBViewgetDailyOperationsData(LongSet operationList, Date startDate, Date endDate, PoolKit pk) protected LonggetTimePredictionIdFromOperation(Long operationId, PoolKit pk) protected voidElaborate prediction results.voidsetFixedOperationSet(LongSet fixedOperationSet) voidsetPredictionDate(Date predictionDate) protected voidprotected voidMethods inherited from class overit.geocallapp.wfm.ai.bl.processing.task.BTBasicPrediction
elaborateTask, getAwsUploadPath, getLogValidityDays, isSingleCall, setSingleCallMethods inherited from class overit.geocallapp.wfm.ai.bl.processing.task.BTBasicAIProcess
body, buildHeaders, checkConfiguration, clearOldLogs, deleteFileS3, deleteTemporaryFiles, getAiConfiguration, getConfigurationParamsHistory, getElaborationHistory, getError, getJobName, getResourcesFolder, getTrainingType, isAsyncQueueMode, prepareDataForApi, setAiConfiguration, setAsyncQueueMode, setJobName, setResourcesFolder, setTrainingType, uploadFileS3, writeLogTableMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
operationsMap
-
-
Constructor Details
-
BTPredictionDuration
public BTPredictionDuration()
-
-
Method Details
-
setFixedOperationSet
-
setPredictionDate
-
buildOperationsMap
protected HashMap<Date,DBView> buildOperationsMap(PoolKit pk) throws DAException, DAValidateException - Specified by:
buildOperationsMapin classBTBasicPrediction- Throws:
DAExceptionDAValidateException
-
getDailyOperationsData
protected DBView getDailyOperationsData(LongSet operationList, Date startDate, Date endDate, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
buildFileToTransfer
protected File buildFileToTransfer(DBView operations, PoolKit pk) throws DAException, DAValidateException Description copied from class:BTBasicPredictionBuild the File object that must be loaded on AWS- Specified by:
buildFileToTransferin classBTBasicPrediction- Parameters:
operations-pk-- Returns:
- Throws:
DAExceptionDAValidateException
-
managePredictResults
protected void managePredictResults(List<Map<String, Object>> predictionResult, PoolKit pk) throws DAException, DAValidateExceptionDescription copied from class:BTBasicPredictionElaborate prediction results.- Specified by:
managePredictResultsin classBTBasicPrediction- Parameters:
predictionResult- the prediction resultpk- the pk- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
updateWoTimeDurationTable
protected void updateWoTimeDurationTable(List<Map<String, Object>> predictionResult, PoolKit pk) throws DAException, DAValidateException- Throws:
DAExceptionDAValidateException
-
updateWoTimeDurationResourceTable
protected void updateWoTimeDurationResourceTable(List<Map<String, Object>> predictionResult, PoolKit pk) throws DAException, DAValidateException- Throws:
DAExceptionDAValidateException
-
getTimePredictionIdFromOperation
protected Long getTimePredictionIdFromOperation(Long operationId, PoolKit pk) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-