You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
897 B
26 lines
897 B
1 year ago
|
package com.zc.business.service;
|
||
|
|
||
|
import com.alibaba.fastjson.JSONObject;
|
||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||
|
import com.zc.business.domain.DcTrafficMetricsData;
|
||
|
import com.zc.business.domain.DcTrafficSectionData;
|
||
|
|
||
|
public interface DcTrafficStatisticsService extends IService<DcTrafficSectionData> {
|
||
|
|
||
|
/**
|
||
|
* 处理实时接收到的一类交流站设备消息,并将其转换为交通断面统计数据对象并缓存。
|
||
|
*
|
||
|
* @param msg 设备发送的JSON格式实时消息
|
||
|
*/
|
||
|
void processRealtimeOneStopMessage(JSONObject msg);
|
||
|
|
||
|
/**
|
||
|
* 获取当前交通特征指数
|
||
|
*
|
||
|
* @param direction 交通方向(例如:1代表菏泽方向,3济南方向)
|
||
|
* @param roadSectionId 路段ID
|
||
|
* @return 当前交通特征指数
|
||
|
*/
|
||
|
DcTrafficMetricsData currentTrafficMetrics(Byte direction, Long roadSectionId);
|
||
|
}
|