Class Info |
|---|
public class BroadcastingPoint 配置播报点信息类。 |
Constructor Name |
|---|
BroadcastingPoint(double distances, UnitEnum unit, GuideSpeechType speechType) 播报点信息类有参构造方法,初始化播报距离、播报单位、以及播报点类型。 |
Qualifier and Type | Method Name and Description |
|---|---|
double | 获取当前播报点的播报距离。 |
| 获取当前播报点的播报类型。 | |
int | 获取当前播报点的公制距离,单位:米。 |
getUnit() 获取当前播报点的公英制单位。 | |
void | setBroadcastingDistances(int broadcastingDistances) 设置当前播报点的播报距离。 |
void | setGuideSpeechType(GuideSpeechType guideSpeechType) 设置当前播报点的播报类型。 |
void | 设置当前播报点的公英制单位。 |
Constructor |
|---|
BroadcastingPoint(double distances, UnitEnum unit, GuideSpeechType speechType) 播报点信息类有参构造方法,初始化播报距离、播报单位、以及播报点类型。 |
Parameters
Name | Description |
|---|---|
distances | 当前播报点的播报距离。 |
unit | 当前播报点的公英制单位。 |
speechType | 当前播报点的播报类型。 |
Method |
|---|
public double getBroadcastingDistances() 您调用此API可以获取当前播报点的播报距离。 |
Returns
Type | Description |
|---|---|
double | 播报距离,单位:米。 |
Method |
|---|
public GuideSpeechType getGuideSpeechType() 您调用此API可以获取当前播报点的播报类型。 |
Returns
Type | Description |
|---|---|
播报类型。 |
Method |
|---|
public int getMeterLen() 您调用此API可以获取当前播报点的公制距离,单位:米。 |
Returns
Type | Description |
|---|---|
int | 公制播报距离,单位:米。 |
Method |
|---|
public UnitEnum getUnit() 您调用此API可以获取当前播报点的公英制单位。 |
Returns
Type | Description |
|---|---|
公英制单位。 |
Method |
|---|
public void setBroadcastingDistances(int broadcastingDistances) 您调用此API可以设置当前播报点的播报距离。 |
Parameters
Name | Description |
|---|---|
broadcastingDistances | 播报距离,单位:米。 |
Method |
|---|
public void setGuideSpeechType(GuideSpeechType guideSpeechType) 您调用此API可以设置当前播报点的播报类型。 |
Parameters
Name | Description |
|---|---|
guideSpeechType | 播报类型。 |
Method |
|---|
public void setUnit(UnitEnum unit) 您调用此API可以设置当前播报点的公英制单位。 |
Parameters
Name | Description |
|---|---|
unit | 公英制单位。 |