feiyu02
2025-08-22 b315032d126a640758d4a6fccf297acbab057772
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.flightfeather.uav.model.underwaygrid
 
import com.flightfeather.uav.model.*
import com.flightfeather.uav.model.epw.NoSection
import com.flightfeather.uav.model.epw.WeightType
import com.flightfeather.uav.socket.eunm.FactorType
 
/**
 *
 * @date 2025/3/21
 * @author feiyu02
 */
class UnderwayGridModel : BaseModel<GridCellAndData, GridCellSop>() {
    override var dataPrep: BaseDataPrep<GridCellAndData, GridCellSop> = UnderwayGridDataPrep()
 
    override var factorTypes: List<FactorType> = WeightType.weightType
 
    override var weights: List<BaseWeight<GridCellAndData, GridCellSop>> = listOf(GridWindDirWeight(), GridWindDisWeight())
 
    override var sections: List<BaseSection<GridCellAndData, GridCellSop>> = listOf(BaseNoSection())
 
    override fun mDataCheck(m: GridCellAndData): Boolean {
        return m.gridDataDetail.pm25 != null
    }
 
    override fun sopCheck(s: GridCellSop): Boolean {
        return s.gridCell.longitude != null && s.gridCell.latitude != null
    }
}