目录

RoadClass

Enum Info

public enum RoadClass

Road class enumeration class.

Enum Value Summary

Enum Value and Description

GRADE_HIGH_WAY(0)

Highway. (bit0)

GRADE_SHIPPING_LINE(1)

Ferry. (bit1)

GRADE_EXIT_RAMP(2)

Highway exit ramp. (bit2)

GRADE_ENTRANCE_RAMP(3)

Highway entrance ramp. (bit3)

GRADE_RAMP(4)

Ramp. (bit4)

GRADE_TUNNEL(5)

Tunnel. (bit5)

GRADE_BRIDGE(6)

Bridge. (bit6)

GRADE_CONNECTOR(7)

Connector. (bit7)

GRADE_IMPENTRANCE(8)

Non-penetrable road. (bit8)

GRADE_UNPAVED(9)

Unpaved road. (bit9)

GRADE_POOR(10)

Poor road. (bit10)

GRADE_ROUGH(11)

Rough road. (bit11)

Public Method Summary

Qualifier and Type

Method Name and Description

int

getCode()

Obtains the road class code.

boolean

match(int value)

Checks whether the specified int-type road class code complies with the current road type.

[h2]getCode

Method

public int getCode()

Obtains the road class code.

Returns

Type

Description

int

Road class code.

[h2]match

Method

public boolean match(int value)

Checks whether the specified int-type road class code complies with the current road type.

Parameters

Name

Description

value

Int-type road class code.

Returns

Type

Description

boolean

true if the specified int-type road class code complies with the current road type; false otherwise.