You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
635 B
27 lines
635 B
package com.zc.business.constant;
|
|
|
|
/**
|
|
* StakeMarkConstant类,用于定义一些桩号常量。
|
|
* @author xiepufeng
|
|
*/
|
|
public class StakeMarkConstant {
|
|
|
|
|
|
// 定义最大桩号常量
|
|
public static final int MAX_STAKE_MARK = 208979;
|
|
|
|
// 定义最小桩号常量
|
|
public static final int MIN_STAKE_MARK = 54394;
|
|
|
|
// 定义毫米波雷达最大间隔
|
|
public static final int MAX_INTERVAL_MILLIMETER_WAVE_RADAR = 12030;
|
|
|
|
/**
|
|
* 计算道路长度
|
|
* @return 道路长度(单位:米)
|
|
*/
|
|
public static int calculateRoadLength() {
|
|
return MAX_STAKE_MARK - MIN_STAKE_MARK;
|
|
}
|
|
|
|
}
|
|
|