代码拉取完成,页面将自动刷新
同步操作将从 zhidianyun01/企业EMS - 能源管理系统 - 能源管理系统源码-双碳平台源码 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
package com.zhengbangnet.commu.wm.message;
/*
* 根据消息定义类、利用Java反射机制,由工具类MakeStubFile自动生成
* 浙江爱充网络, 2020-07-03
* */
import com.zhengbangnet.commu.wm.pack.PackException;
import com.zhengbangnet.commu.wm.pack.PackStubIF;
import com.zhengbangnet.commu.wm.pack.PackUtil;
public class wmp_bms_info_stub implements PackStubIF {
@Override
public void pack(PackUtil.Buf buf, Object o) throws PackException {
wmp_bms_info wmp_bms_info = (wmp_bms_info)o;
PackUtil.putByte(buf, wmp_bms_info.bms_type);
PackUtil.putByte(buf, wmp_bms_info.batt_soc);
PackUtil.putShort(buf, wmp_bms_info.cell_charge_volt_max.getShort());
PackUtil.putShort(buf, wmp_bms_info.charge_curr_max.getShort());
PackUtil.putShort(buf, wmp_bms_info.batt_volt_max.getShort());
PackUtil.putShort(buf, wmp_bms_info.batt_volt_now.getShort());
PackUtil.putShort(buf, wmp_bms_info.batt_capacity.getShort());
PackUtil.putShort(buf, wmp_bms_info.batt_quantity.getShort());
PackUtil.putShort(buf, wmp_bms_info.batt_temp_max.getShort());
PackUtil.putByte(buf, wmp_bms_info.battery_type.getByte());
PackUtil.putProtocolStr(buf, wmp_bms_info.vin);
}
@Override
public Object unpack(PackUtil.Buf buf) throws PackException {
wmp_bms_info wmp_bms_info = new wmp_bms_info();
wmp_bms_info.bms_type = PackUtil.getByte(buf);
wmp_bms_info.batt_soc = PackUtil.getByte(buf);
wmp_bms_info.cell_charge_volt_max.setShort(PackUtil.getShort(buf));
wmp_bms_info.charge_curr_max.setShort(PackUtil.getShort(buf));
wmp_bms_info.batt_volt_max.setShort(PackUtil.getShort(buf));
wmp_bms_info.batt_volt_now.setShort(PackUtil.getShort(buf));
wmp_bms_info.batt_capacity.setShort(PackUtil.getShort(buf));
wmp_bms_info.batt_quantity.setShort(PackUtil.getShort(buf));
wmp_bms_info.batt_temp_max.setShort(PackUtil.getShort(buf));
wmp_bms_info.battery_type.setByte(PackUtil.getByte(buf));
PackUtil.parseProtocolStr(buf, wmp_bms_info.vin);
return wmp_bms_info;
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。