feiyu02
2025-09-01 29383149f7040d89ae00ad48dc48bbcf46587946
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.flightfeather.uav.socket.eunm
 
/**
 * 聚合监测因子
 * @date 2025/8/29
 * @author feiyu02
 */
enum class AggregatedFactorType(val des: String) {
    PM_AF("颗粒物(PM)"),
    NO_AF("氮氧化物");
 
    companion object {
        /**
         * 根据因子类型获取聚合因子类型
         */
        fun getAFType(factorType: FactorType?): AggregatedFactorType? {
            return when (factorType) {
                FactorType.PM25, FactorType.PM10 -> PM_AF
                FactorType.NO, FactorType.NO2 -> NO_AF
                else -> null
            }
        }
    }
}