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.
38 lines
1.3 KiB
38 lines
1.3 KiB
package com.mh.user.strategy; |
|
|
|
import com.mh.user.entity.CollectionParamsManageEntity; |
|
import com.mh.user.entity.DeviceCodeParamEntity; |
|
import com.mh.user.entity.DeviceInstallEntity; |
|
|
|
/** |
|
* @author LJF |
|
* @version 1.0 |
|
* @project CHWS |
|
* @description 设备操作策略模式 |
|
* @date 2024-03-15 16:25:43 |
|
*/ |
|
public interface DeviceStrategy { |
|
|
|
/** |
|
* 根据读,写方式创建报文 |
|
*/ |
|
String createOrders(DeviceCodeParamEntity deviceCodeParamEntity); |
|
|
|
String analysisReceiveData(String dateStr, String deviceType, String registerAddr, String brand, String buildingId, String buildingName, String dataStr, DeviceCodeParamEntity deviceCodeParamEntity); |
|
|
|
/** |
|
* 解析MQTT报文 |
|
* @param dateStr |
|
* @param registerAddr |
|
* @param dataStr 已经是解析好的数据 |
|
* @param operateType 操作类型,读取/设置 |
|
* @param deviceInstallEntity |
|
* @return |
|
*/ |
|
String analysisMQTTReceiveData(String dateStr, |
|
String registerAddr, |
|
String dataStr, |
|
String operateType, |
|
DeviceInstallEntity deviceInstallEntity, |
|
CollectionParamsManageEntity collectionParamsManageEntity); |
|
}
|
|
|