| | |
| | | |
| | | |
| | | // 异常数据生成回调类 |
| | | typealias NewPolluteClueCallback = (ex: PollutedClue) -> Unit |
| | | typealias NewPolluteClueCallback = (ex: List<PollutedClue>) -> Unit |
| | | /** |
| | | * 不同风速下,数据突变异常基类 |
| | | * @date 2025/5/29 |
| | |
| | | exceptionStatus: ExceptionStatusType, |
| | | ) { |
| | | super.onNewException(tag, factor, exceptionStatus) |
| | | // callback?.let { func -> |
| | | // val exc = tag.exceptionResult.last() |
| | | // func.invoke(exc as PollutedClue) |
| | | // } |
| | | } |
| | | |
| | | override fun mergeExceptionResult() { |
| | | super.mergeExceptionResult() |
| | | latestExceptionResult |
| | | latestCombinedResult |
| | | callback?.let { func -> |
| | | val exc = tag.exceptionResult.last() |
| | | func.invoke(exc as PollutedClue) |
| | | latestExceptionResult.forEach { |
| | | func.invoke(listOf(it as PollutedClue)) |
| | | } |
| | | latestCombinedResult.forEach { |
| | | func.invoke(it as List<PollutedClue>) |
| | | } |
| | | } |
| | | } |
| | | } |