| | |
| | | } |
| | | |
| | | override fun newResult(tag: ExceptionTag, factor: FactorFilter.SelectedFactor): PollutedClue { |
| | | return PollutedClue(tag, factor, getExceptionType(), config, changeRate[factor.main]) |
| | | return PollutedClue() |
| | | } |
| | | |
| | | override fun newResult(exceptions: List<Pair<FactorFilter.SelectedFactor, ExceptionTag>>): PollutedClue { |
| | | return if (exceptions.isEmpty()) |
| | | PollutedClue() |
| | | else |
| | | PollutedClue(exceptions, getExceptionType(), config, changeRate[exceptions[0].first.main]) |
| | | } |
| | | |
| | | override fun onNewException( |
| | |
| | | |
| | | override fun mergeExceptionResult() { |
| | | super.mergeExceptionResult() |
| | | latestExceptionResult |
| | | latestCombinedResult |
| | | callback?.let { func -> |
| | | latestExceptionResult.forEach { |
| | | func.invoke(listOf(it as PollutedClue)) |
| | | result.forEach { |
| | | func.invoke(it) |
| | | } |
| | | latestCombinedResult.forEach { |
| | | func.invoke(it as List<PollutedClue>) |
| | | } |
| | | // latestExceptions.forEach { |
| | | // func.invoke(listOf(it as PollutedClue)) |
| | | // } |
| | | // latestCombinedExc.forEach { |
| | | // func.invoke(it as List<PollutedClue>) |
| | | // } |
| | | } |
| | | } |
| | | } |