目录

BroadcastingPoint

Class Info

public class BroadcastingPoint

Broadcast point class.

Public Constructor Summary

Constructor Name

BroadcastingPoint(double distances, UnitEnum unit, GuideSpeechType speechType)

Parameterized constructor of the BroadcastingPoint class, which can initialize the broadcast distance, broadcast unit, and broadcast point type.

Public Method Summary

Qualifier and Type

Method Name and Description

double

getBroadcastingDistances()

Obtains the broadcast distance of the current broadcast point.

GuideSpeechType

getGuideSpeechType()

Obtains the broadcast type of the current broadcast point.

int

getMeterLen()

Obtains the metric broadcast distance of the current broadcast point, in meters.

UnitEnum

getUnit()

Obtains the metric and imperial units of the current broadcast point.

void

setBroadcastingDistances(int broadcastingDistances)

Sets the broadcast distance of the current broadcast point.

void

setGuideSpeechType(GuideSpeechType guideSpeechType)

Sets the broadcast type of the current broadcast point.

void

setUnit(UnitEnum unit)

Sets the metric and imperial units of the current broadcast point.

Public Constructors

[h2]BroadcastingPoint(double distances, UnitEnum unit, GuideSpeechType speechType)

Constructor

BroadcastingPoint(double distances, UnitEnum unit, GuideSpeechType speechType)

Parameterized constructor of the BroadcastingPoint class, which can initialize the broadcast distance, broadcast unit, and broadcast point type.

Parameters

Name

Description

distances

Broadcast distance of the current broadcast point.

unit

Metric and imperial units of the current broadcast point.

speechType

Broadcast type of the current broadcast point.

Public Methods

[h2]getBroadcastingDistances

Method

public double getBroadcastingDistances()

Obtains the broadcast distance of the current broadcast point.

Returns

Type

Description

double

Broadcast distance, in meters.

[h2]getGuideSpeechType

Method

public GuideSpeechType getGuideSpeechType()

Obtains the broadcast type of the current broadcast point.

Returns

Type

Description

GuideSpeechType

Broadcast type.

[h2]getMeterLen

Method

public int getMeterLen()

Obtains the metric broadcast distance of the current broadcast point, in meters.

Returns

Type

Description

int

Metric broadcast distance, in meters.

[h2]getUnit

Method

public UnitEnum getUnit()

Obtains the metric and imperial units of the current broadcast point.

Returns

Type

Description

UnitEnum

Metric and imperial units.

[h2]setBroadcastingDistances

Method

public void setBroadcastingDistances(int broadcastingDistances)

Sets the broadcast distance of the current broadcast point.

Parameters

Name

Description

broadcastingDistances

Broadcast distance, in meters.

[h2]setGuideSpeechType

Method

public void setGuideSpeechType(GuideSpeechType guideSpeechType)

Sets the broadcast type of the current broadcast point.

Parameters

Name

Description

guideSpeechType

Broadcast type.

[h2]setUnit

Method

public void setUnit(UnitEnum unit)

Sets the metric and imperial units of the current broadcast point.

Parameters

Name

Description

unit

Metric and imperial units.