|
@ -22,17 +22,17 @@ public enum ChannelCongestionLevelEnum { |
|
|
/** |
|
|
/** |
|
|
* 表示通道轻度拥堵,速度阈值为40 km/h |
|
|
* 表示通道轻度拥堵,速度阈值为40 km/h |
|
|
*/ |
|
|
*/ |
|
|
LIGHT_CONGESTION(40, 1, "轻度拥堵"), |
|
|
LIGHT_CONGESTION(40, 1000, "轻度拥堵"), |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 表示通道中度拥堵,速度阈值为20 km/h |
|
|
* 表示通道中度拥堵,速度阈值为20 km/h |
|
|
*/ |
|
|
*/ |
|
|
MEDIUM_CONGESTION(20, 2, "中度拥堵"), |
|
|
MEDIUM_CONGESTION(20, 2000, "中度拥堵"), |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 使用负数作为默认值,表示无限小,始终小于其他速度阈值,表示通道严重拥堵 |
|
|
* 使用负数作为默认值,表示无限小,始终小于其他速度阈值,表示通道严重拥堵 |
|
|
*/ |
|
|
*/ |
|
|
SEVERE_CONGESTION(-1, 4, "严重拥堵"); |
|
|
SEVERE_CONGESTION(-1, 4000, "严重拥堵"); |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 速度阈值,用于判断通道拥挤程度 |
|
|
* 速度阈值,用于判断通道拥挤程度 |
|
@ -55,9 +55,9 @@ public enum ChannelCongestionLevelEnum { |
|
|
* @param speedThreshold 速度阈值 |
|
|
* @param speedThreshold 速度阈值 |
|
|
* @param description 等级描述 |
|
|
* @param description 等级描述 |
|
|
*/ |
|
|
*/ |
|
|
ChannelCongestionLevelEnum(int speedThreshold, int defaultCongestionMiles, String description) { |
|
|
ChannelCongestionLevelEnum(int speedThreshold, int defaultCongestionDistance, String description) { |
|
|
this.speedThreshold = speedThreshold; |
|
|
this.speedThreshold = speedThreshold; |
|
|
this.defaultCongestionDistance = defaultCongestionMiles; |
|
|
this.defaultCongestionDistance = defaultCongestionDistance; |
|
|
this.description = description; |
|
|
this.description = description; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|