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
|
}
|
}
|