package com.whyc.dto;
|
|
public class ActmstopReason {
|
//actm停止原因
|
public static String getStopReason(int stopType){
|
String stopReason="未知";
|
switch (stopType){
|
case 1:stopReason="手动停止";break;
|
case 2:stopReason="测试时间到";break;
|
case 3:stopReason="预放容量到";break;
|
case 4:stopReason="预充容量到";break;
|
case 5:stopReason="单体下限到";break;
|
case 6:stopReason="单体上限到";break;
|
case 7:stopReason="模组下限到";break;
|
case 8:stopReason="模组上限到";break;
|
case 9:stopReason="硬件告警";break;
|
case 10:stopReason="通信异常";break;
|
case 11:stopReason="整流器电压过高";break;
|
case 12:stopReason="整流器电压过低";break;
|
case 13:stopReason="单体压差到达设定值";break;
|
case 14:stopReason="模组电压与充电目标电压之差小于0.5V 且 测试电流到达设置阀值,停止充电";break;
|
case 15:stopReason="模组电压与放电目标电压之差小于0.5V 且 测试电流到达设置阀值,停止放电";break;
|
case 16:stopReason="紧急停机";break;
|
case 17:stopReason="模组电压异常或DC断路器已断开";break;
|
case 18:stopReason="单体电压采集模块未连接";break;
|
case 19:stopReason="模组电压到达保护电压值";break;
|
case 20:stopReason="单体温度过高";break;
|
case 21:stopReason="组压持续3分钟异常";break;
|
case 22:stopReason="温度3分钟内升高5°C";break;
|
case 23:stopReason="单体温度采集模块未连接";break;
|
}
|
return stopReason;
|
}
|
//电池类型
|
public static String getBattType(int battType){
|
String typeName="未知";
|
switch (battType){
|
case 0:typeName="铁锂";break;
|
case 1:typeName="三元锂";break;
|
case 2:typeName="钛酸锂电";break;
|
case 3:typeName="锰酸锂";break;
|
}
|
return typeName;
|
}
|
|
//测试类型
|
public static String getTestType(int testType){
|
String typeName="未知";
|
switch (testType){
|
case 2:typeName="充电";break;
|
case 3:typeName="放电";break;
|
case 4:typeName="均衡";break;
|
}
|
return typeName;
|
}
|
}
|