feiyu02
2023-11-23 e2392116cd6f875cdc2f46bc04b04d5305f21b56
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.flightfeather.monitor.analysis.dust.exception
 
import com.flightfeather.monitor.domain.ds1.entity.DustExceptionSetting
import com.flightfeather.monitor.domain.ds1.entity.DustSiteData
import com.flightfeather.monitor.enumration.dust.DataStatus
import com.flightfeather.monitor.enumration.dust.ExceptionType
 
/**
 * 数据超标异常分析
 */
class ExceptionDataExceed(config: DustExceptionSetting) : BaseExceptionContinuousSingle(config) {
 
    override fun getExceptionType(): ExceptionType = ExceptionType.TYPE2
 
    override fun judgeException(p: DustSiteData?, n: DustSiteData): Boolean {
        return n.dustValue >= config.exceedingStandard && n.flag == DataStatus.N.value
    }
 
    override fun judgeDuration(sIndex: Int, eIndex: Int): Boolean {
        return true
    }
}