whycxzp
2025-04-14 6cf9c5edbe3ae92e7ec90bea498e43d8da804e41
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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;
    }
}