| | |
| | | return this |
| | | } |
| | | |
| | | fun withCombination(com: List<List<FactorType>>):Builder{ |
| | | combination.addAll(com) |
| | | return this |
| | | } |
| | | |
| | | fun create(): FactorFilter { |
| | | return this@FactorFilter |
| | | } |
| | |
| | | fun default() = builder() |
| | | .withMain(FactorType.VOC) |
| | | .withSubs(listOf( |
| | | FactorType.H2S, |
| | | // FactorType.H2S, |
| | | FactorType.O3, |
| | | FactorType.PM25, |
| | | FactorType.PM10, |
| | | )) |
| | | .withMain(FactorType.H2S) |
| | | .withSubs(listOf( |
| | | FactorType.VOC, |
| | | FactorType.O3, |
| | | FactorType.PM25, |
| | | )) |
| | | // .withMain(FactorType.H2S) |
| | | // .withSubs(listOf( |
| | | // FactorType.VOC, |
| | | // FactorType.O3, |
| | | // FactorType.PM25, |
| | | // )) |
| | | .withMain(FactorType.O3) |
| | | .withSubs(listOf( |
| | | FactorType.VOC, |
| | | FactorType.H2S, |
| | | // FactorType.H2S, |
| | | FactorType.PM25, |
| | | FactorType.PM10, |
| | | )) |
| | | .withMain(FactorType.PM25) |
| | | .withSubs(listOf( |
| | | FactorType.VOC, |
| | | FactorType.H2S, |
| | | // FactorType.H2S, |
| | | FactorType.O3, |
| | | FactorType.PM10, |
| | | )) |
| | | .withMain(FactorType.PM10) |
| | | .withSubs(listOf( |
| | | FactorType.VOC, |
| | | // FactorType.H2S, |
| | | FactorType.O3, |
| | | FactorType.PM25, |
| | | )) |
| | | // .withSubs(listOf( |
| | | // FactorType.NO2, |
| | |
| | | // 所选因子集合 |
| | | val selectedList = mutableListOf<SelectedFactor>() |
| | | |
| | | // 因子的关联关系 |
| | | val combination = mutableListOf<List<FactorType>>() |
| | | |
| | | fun mainList(): List<FactorType> { |
| | | return selectedList.map { it.main } |
| | | } |