feiyu02
2025-03-21 e5bdf2e02090357cbd580d54e6cd2406dd541760
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
30
31
package com.flightfeather.uav.model.underwaygrid
 
import com.flightfeather.uav.model.BaseDataPrep
import com.flightfeather.uav.model.BaseModel
import com.flightfeather.uav.model.BaseSection
import com.flightfeather.uav.model.BaseWeight
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>> = emptyList()
 
    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
    }
}