| | |
| | | import com.flightfeather.uav.biz.FactorFilter |
| | | import com.flightfeather.uav.biz.dataanalysis.BaseExceptionAnalysis |
| | | import com.flightfeather.uav.biz.dataanalysis.model.DataAnalysisConfig |
| | | import com.flightfeather.uav.biz.dataanalysis.model.ExceptionResult |
| | | import com.flightfeather.uav.biz.dataanalysis.model.ExceptionType |
| | | import com.flightfeather.uav.domain.entity.BaseRealTimeData |
| | | import com.flightfeather.uav.socket.eunm.FactorType |
| | |
| | | /** |
| | | * 滑动平均值突变异常 |
| | | */ |
| | | class ExceptionSlideAverage(config: DataAnalysisConfig) : BaseExceptionAnalysis(config) { |
| | | class ExceptionSlideAverage(config: DataAnalysisConfig) : |
| | | BaseExceptionAnalysis<DataAnalysisConfig, ExceptionResult>(config) { |
| | | |
| | | private val historyDataList = mutableListOf<BaseRealTimeData>() |
| | | private val tempDataList = mutableListOf<BaseRealTimeData>() |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | 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) |
| | | } |
| | | } |