package com.ruoyi.dataInterchange.api.model.enums;
|
|
|
/**
|
* 报警类型
|
*
|
* @author zhibing.pu
|
* @Date 2025/3/13 12:02
|
*/
|
public enum WarnType {
|
OVERSPEED_ALARM(0x0001, "超速报警"),
|
FATIGUE_DRIVING_ALARM(0x0002, "疲劳驾驶报警"),
|
EMERGENCY_ALARM(0x0003, "紧急报警"),
|
ENTER_THE_DESIGNATED_AREA_TO_ALERT(0x0004, "进入指定区域报警"),
|
LEAVE_THE_DESIGNATED_AREA_TO_CALL_THE_POLICE(0x0005, "离开指定区域报警"),
|
ROAD_BLOCKING_ALARM(0x0006, "路段堵塞报警"),
|
DANGEROUS_ROAD_WARNING(0x0007, "危险路段报警"),
|
CROSSING_ALARM(0x0008, "越界报警"),
|
BURGLAR_ALARM(0x0009, "盗警"),
|
ROBBERY_POLICE(0x000A, "劫警"),
|
OFF_COURSE_ALARM(0x000B, "偏离路线报警"),
|
VEHICLE_MOVEMENT_ALARM(0x000C, "车辆移动报警"),
|
OVERTIME_DRIVING_ALARM(0x000D, "超时驾驶报警"),
|
ALARM_FOR_ILLEGAL_DRIVING(0x0010, "违规行驶报警"),
|
FORWARD_COLLISION_ALARM(0x0011, "前撞报警"),
|
LANE_DEPARTURE_ALARM(0x0012, "车道偏离报警"),
|
ABNORMAL_TIRE_PRESSURE_ALARM(0x0013, "胎压异常报警"),
|
DYNAMIC_INFORMATION_ABNORMAL_ALARM(0x0014, "动态信息异常报警"),
|
OTHER_ALARMS(0x00FF, "其它报警"),
|
VIDEO_SIGNAL_LOSS_ALARM(0x0101, "视频信号丢失报警"),
|
VIDEO_SIGNAL_OCCLUSION_ALARM(0x0102, "视频信号遮挡报警"),
|
STORAGE_UNIT_FAULT_ALARM(0x0103, "存储单元故障报警"),
|
OTHER_VIDEO_EQUIPMENT_FAILURE_ALARM(0x0104, "其他视频设备故障报警"),
|
BUS_OVERLOADING_ALARM(0x0105, "客车超员报警"),
|
ABNORMAL_DRIVING_BEHAVIOR_ALARM(0x0106, "异常驾驶行为报警"),
|
SPECIAL_ALARM_VIDEO_REACHES_THE_STORAGE_THRESHOLD_ALARM(0x0107, "特殊报警录像达到存储阈值报警"),
|
FORWARD_COLLISION_ALARM1(0x0201, "前向碰撞报警"),
|
LANE_DEPARTURE_ALARM1(0x0202, "车道偏离报警"),
|
ALARM_WHEN_THE_DISTANCE_BETWEEN_VEHICLES_IS_TOO_CLOSE(0x0203, "车距过近报警"),
|
PEDESTRIAN_COLLISION_ALARM(0x0204, "行人碰撞报警"),
|
FREQUENT_LANE_CHANGE_ALARM(0x0205, "频繁变道报警"),
|
ROAD_SIGN_OVER_LIMIT_ALARM(0x0206, "道路标识超限报警"),
|
OBSTACLE_ALARM(0x0207, "障碍物报警"),
|
ALARM_FOR_FAILURE_OF_DRIVING_ASSISTANCE_FUNCTIONS(0x0208, "驾驶辅助功能失效报警"),
|
FATIGUE_DRIVING_ALARM_PHYSIOLOGICAL_FATIGUE(0x0211, "疲劳驾驶报警(生理疲劳)"),
|
CALL_THE_ALARM_IF_YOU_DONT_LOOK_STRAIGHT_AHEAD_FOR_A_LONG_TIME(0x0212, "长时间不目视前方报警"),
|
SMOKING_ALARM(0x0213, "抽烟报警"),
|
CALL_THE_POLICE_WITH_A_HANDHELD_PHONE(0x0214, "接打手持电话报警"),
|
THE_DRIVER_ALARM_WAS_NOT_DETECTED(0x0215, "未检测到驾驶员报警"),
|
CALL_THE_ALARM_WHEN_BOTH_HANDS_ARE_TAKEN_OFF_THE_STEERING_WHEEL_SIMULTANEOUSLY(0x0216, "双手同时脱离方向盘报警"),
|
DRIVER_BEHAVIOR_MONITORING_FUNCTION_FAILURE_ALARM(0x0217, "驾驶员行为监测功能失效报警"),
|
DRIVER_IDENTITY_ANOMALY_ALARM(0x0218, "驾驶员身份异常报警"),
|
DRIVER_CHANGE_ALARM(0x0219, "驾驶员变更报警"),
|
HIGH_TIRE_PRESSURE_ALARM(0x0221, "胎压过高报警"),
|
LOW_TIRE_PRESSURE_ALARM(0x0222, "胎压过低报警"),
|
TIRE_TEMPERATURE_TOO_HIGH_ALARM(0x0223, "轮胎温度过高报警"),
|
SENSOR_ABNORMAL_ALARM(0x0224, "传感器异常报警"),
|
TIRE_PRESSURE_IMBALANCE_ALARM(0x0225, "胎压不平衡报警"),
|
SLOW_GAS_LEAKAGE_ALARM(0x0226, "慢漏气报警"),
|
LOW_BATTERY_VOLTAGE_ALARM(0x0227, "电池电压低报警"),
|
REAR_APPROACH_ALARM(0x0231, "后方接近报警"),
|
THE_ALARM_IS_APPROACHING_FROM_THE_LEFT_REAR(0x0232, "左侧后方接近报警"),
|
THE_ALARM_IS_APPROACHING_FROM_THE_RIGHT_REAR(0x0233, "右侧后方接近报警"),
|
PEDESTRIAN_ALARM_IN_THE_BLIND_SPOT_ON_THE_RIGHT_SIDE(0x0234, "右侧盲区行人报警"),
|
EMERGENCY_ACCELERATION_ALARM(0x0241, "急加速报警"),
|
EMERGENCY_DECELERATION_ALARM(0x0242, "急减速报警"),
|
SHARP_TURN_ALARM(0x0243, "急转弯报警"),
|
IDLE_SPEED_ALARM(0x0244, "怠速报警"),
|
ABNORMAL_STALLING_ALARM(0x0245, "异常熄火报警"),
|
NEUTRAL_COASTING_ALARM(0x0246, "空挡滑行报警"),
|
ENGINE_OVERSPEED_ALARM(0x0247, "发动机超转报警"),
|
COLLISION_WARNING(0x0301, "碰撞预警"),
|
ROLLOVER_WARNING(0x0302, "侧翻预警"),
|
ENTRY_AND_EXIT_ROUTES(0x0304, "进出路线"),
|
THE_DRIVING_TIME_ON_THE_SECTION_IS_INSUFFICIENT(0x0305, "路段行驶时间不足/过长"),
|
ILLEGAL_IGNITION_OF_VEHICLES(0x0306, "车辆非法点火"),
|
ILLEGAL_DISPLACEMENT_OF_VEHICLES(0x0307, "车辆非法位移"),
|
TERMINAL_FAULT_ALARM(0x0308, "终端故障报警"),
|
AN_ALARM_HAS_BEEN_TRIGGERED_FOR_THREE_DAYS_WITHOUT_GOING_ONLINE(0x0311, "三天未上线报警"),
|
CARRY_OUT_TIME_SLOT_TRAFFIC_ALARM(0x0312, "进行时段行车报警"),
|
LONG_TERM_REMOTE_BUSINESS_OPERATION_ALARM(0x0313, "长期异地经营报警"),
|
OFFLINE_DISPLACEMENT_ALARM(0x0314, "离线位移报警"),
|
EXCESSIVE_PARKING(0xA001, "超时停车"),
|
THE_TIME_INTERVAL_FOR_REPORTING_VEHICLE_POSITIONING_INFORMATION_IS_ABNORMAL(0xA002, "车辆定位信息上报时间间隔异常"),
|
THE_DISTANCE_INTERVAL_FOR_REPORTING_VEHICLE_POSITIONING_INFORMATION_IS_ABNORMAL(0xA003, "车辆定位信息上报距离间隔异常"),
|
THE_LOWER_LEVEL_PLATFORM_IS_ABNORMALLY_SHORT_TERM(0xA004, "下级平台异常短线"),
|
ABNORMAL_DATA_TRANSMISSION_ON_THE_SUBORDINATE_PLATFORM(0xA005, "下级平台数据传输异常"),
|
ROAD_SECTION_CONGESTION_ALARM(0xA006, "路段堵塞报警"),
|
ALARM_FOR_DANGEROUS_SECTIONS(0xA007, "危险路段报警"),
|
RAIN_AND_SNOW_WEATHER_WARNING(0xA008, "雨雪天气报警"),
|
ABNORMAL_DRIVER_IDENTITY_RECOGNITION(0xA009, "驾驶员身份识别异常"),
|
TERMINAL_ANOMALY(0xA00A, "终端异常(含线路连接异常)"),
|
PLATFORM_ACCESS_ANOMALY(0xA00B, "平台接入异常"),
|
CORE_DATA_ANOMALY(0xA00C, "核心数据异常"),
|
OTHER_ALARMS1(0xA0FF, "其它报警"),
|
OTHER_ALARM(0x00FF, "其他报警");
|
private Integer code;
|
|
private String name;
|
|
|
WarnType(Integer code, String name) {
|
this.code = code;
|
this.name = name;
|
}
|
|
|
public static String getWarnTypeName(int code) {
|
WarnType[] values = WarnType.values();
|
for (WarnType value : values) {
|
if (value.code == code) {
|
return value.name;
|
}
|
}
|
return "其他报警";
|
}
|
|
}
|