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
27
| package com.flightfeather.uav.biz.dataanalysis
|
| import com.flightfeather.uav.biz.FactorFilter
| import com.flightfeather.uav.biz.dataanalysis.model.ExceptionType
| import com.flightfeather.uav.domain.entity.BaseRealTimeData
|
| /**
| * 监测数据异常分析基类
| */
| abstract class BaseExceptionAnalysis<V : BaseAnalysisConfig, Y : BaseExceptionResult>(config: V) :
| BaseDataAnalysis<BaseRealTimeData, V, Y>(config) {
|
| /**
| * 确定异常类型
| */
| abstract fun getExceptionType(): ExceptionType
|
| /**
| * 生成一条异常分析结果
| */
| abstract fun newResult(
| start: BaseRealTimeData,
| end: BaseRealTimeData?,
| factor: FactorFilter.SelectedFactor,
| exceptionData: List<BaseRealTimeData>,
| ): Y
| }
|
|