1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.flightfeather.uav.biz.dataanalysis.exceptiontype
 
import com.flightfeather.uav.biz.FactorFilter
import com.flightfeather.uav.biz.dataanalysis.BaseExceptionContinuous
import com.flightfeather.uav.biz.dataanalysis.model.DataAnalysisConfig
import com.flightfeather.uav.biz.dataanalysis.model.ExceptionResult
import com.flightfeather.uav.domain.entity.BaseRealTimeData
 
/**
 * 连续类型的异常分析基类,适用于当前数据与相邻数据之间有关联关系的情况
 * @date 2025/5/13
 * @author feiyu02
 */
abstract class ExceptionContinuous(config: DataAnalysisConfig) :
    BaseExceptionContinuous<DataAnalysisConfig, ExceptionResult>(config) {
 
    override fun newResult(
        start: BaseRealTimeData,
        end: BaseRealTimeData?,
        factor: FactorFilter.SelectedFactor,
        exceptionData: List<BaseRealTimeData>,
    ): ExceptionResult {
        val eType = getExceptionType()
        return ExceptionResult(start, end, factor, exceptionData, config.mission.missionCode, eType)
    }
}