| | |
| | | return res |
| | | } |
| | | |
| | | override fun judgeExceptionCount(tag: ExceptionTag): Boolean { |
| | | override fun judgeExceptionCount(tag: ExceptionTag, factorType: FactorType?): Boolean { |
| | | return tag.exceptionData.size >= windLevelCondition.countLimit |
| | | } |
| | | |
| | |
| | | return b1 || b2 |
| | | } |
| | | |
| | | override fun immeExcCheck(tag: ExceptionTag): Boolean { |
| | | override fun immeExcCheck(tag: ExceptionTag, factorType: FactorType): Boolean { |
| | | // 异常出现等于限定次数时,就需要形成污染线索 |
| | | return tag.exceptionData.size == windLevelCondition.countLimit |
| | | } |
| | | |
| | | override fun newResult( |
| | | start: BaseRealTimeData, |
| | | end: BaseRealTimeData?, |
| | | factor: FactorFilter.SelectedFactor, |
| | | exceptionData: List<BaseRealTimeData>, |
| | | ): PollutedClue { |
| | | return PollutedClue(start, end, factor, exceptionData, getExceptionType(), config, windLevelCondition) |
| | | override fun newResult(tag: ExceptionTag, factor: FactorFilter.SelectedFactor): PollutedClue { |
| | | return PollutedClue(tag, factor, getExceptionType(), config, windLevelCondition) |
| | | } |
| | | |
| | | // override fun newResult( |
| | | // start: BaseRealTimeData, |
| | | // end: BaseRealTimeData?, |
| | | // factor: FactorFilter.SelectedFactor, |
| | | // exceptionData: List<BaseRealTimeData>, |
| | | // ): PollutedClue { |
| | | // return PollutedClue(start, end, factor, exceptionData, getExceptionType(), config, windLevelCondition) |
| | | // } |
| | | |
| | | override fun onNewException( |
| | | tag: ExceptionTag, |
| | | factor: FactorFilter.SelectedFactor, |