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
package com.flightfeather.obd.socket.decoder
 
import com.flightfeather.obd.socket.bean.*
import com.flightfeather.obd.socket.eunm.ObdDataType
import java.util.*
 
/**
 * @author riku
 * Date: 2019/9/15
 * 数据单元[DataUnit]中,类型为实时信息[RealTimeData]的解码器
 * 其分类 @see [ObdDataType]
 */
interface RealTimeDataDecoder {
 
    fun getObdData(time: Date?, serialNum: Int, b: List<String>): ObdData?
 
    fun getEngineDataFlow(time: Date?, serialNum: Int, b: List<String>): EngineDataFlow?
 
    fun getSupplementDataFlow(time: Date?, serialNum: Int, b: List<String>): SupplementDataFlow?
 
    /**
     * 根据传入的列表,默认第一位为 [ObdDataType],返回对应的数据列表
     */
    fun getDataListByDataType(list: List<String>): MutableList<String>
 
}