Class TMCLocationReference
- All Implemented Interfaces:
Method
,Serializable
,scala.Equals
,scala.Product
,scala.Serializable
param: locationID The number of the of the primary location in the location table. It is an unsigned 16-bit integer, that is
a number between 1 and 65535. It is customarily represented as a decimal number.
param: countryCode The country code is used to identify the correct location table. This is
a number between 1 and 15. It is customarily represented as a single hexadecimal digit.
param: locationTableNumber The number of the location table. This is a number between 1-63. It is customarily represented as a two digit
decimal number.
param: direction Indicates whether to follow the positive direction (true
) to go from
primary to secondary or whether to follow the negative direction (false
).
param: bothDirections Indicates whether both directions are considered part of the referenced location.
param: extent Number of locations along the linear to get from the primary location
to the secondary location following the direction given in direction
.
A value of None is equivalent to Some(0) and means that only the internal of the primary location is part of the referenced location. param: extendedCountryCode The extended country code is used to identify the table. It is an unsigned 8-bit integer. It is customarily represented as a two digit hexadecimal number. param: locationTableVersion A variable length representation of the table version.
If one byte is used then there are 4 bits for the major version and 3 bits for the minor version.
If two bytes are used the there are 7 bits for the minor and 7 bits for the major version. param: preciseTMCInfo Offsets to give a more precise location.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTMCLocationReference
(int locationID, short countryCode, short locationTableNumber, boolean direction, boolean bothDirections, Optional<Object> extent, Optional<Object> extendedCountryCode, Optional<Object> locationTableVersion, Optional<PreciseTMCInformation> preciseTMCInfo) TMCLocationReference
(int locationID, short countryCode, short locationTableNumber, boolean direction, boolean bothDirections, scala.Option<Object> extent, scala.Option<Object> extendedCountryCode, scala.Option<Object> locationTableVersion, scala.Option<PreciseTMCInformation> preciseTMCInfo) -
Method Summary
Modifier and TypeMethodDescriptionabstract static R
apply
(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9) boolean
short
boolean
scala.Option<Object>
scala.Option<Object>
extent()
short
int
short
boolean
boolean
int
short
scala.Option<Object>
scala.Option<PreciseTMCInformation>
static String
toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
-
Constructor Details
-
TMCLocationReference
public TMCLocationReference(int locationID, short countryCode, short locationTableNumber, boolean direction, boolean bothDirections, scala.Option<Object> extent, scala.Option<Object> extendedCountryCode, scala.Option<Object> locationTableVersion, scala.Option<PreciseTMCInformation> preciseTMCInfo) -
TMCLocationReference
-
-
Method Details
-
apply
public abstract static R apply(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9) -
toString
-
locationID
public int locationID() -
countryCode
public short countryCode() -
locationTableNumber
public short locationTableNumber() -
direction
public boolean direction() -
bothDirections
public boolean bothDirections() -
extent
-
extendedCountryCode
-
locationTableVersion
-
preciseTMCInfo
-
getLocationID
public int getLocationID() -
getCountryCode
public short getCountryCode() -
getLocationTableNumber
public short getLocationTableNumber() -
isDirection
public boolean isDirection() -
isBothDirections
public boolean isBothDirections() -
getExtent
-
getExtendedCountryCode
-
getLocationTableVersion
-
getPreciseTMCInfo
-