Class TmcTableId

java.lang.Object
com.here.platform.location.referencing.tmc.TmcTableId
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product, scala.Serializable

public class TmcTableId extends Object implements scala.Product, scala.Serializable
The TMC id of a specific location table. It is a composite key that consists of multiple values.

param: version 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: extendedCountryCode It is an unsigned 8-bit integer. It is customarily param: countryCode This is a number between 1 and 15. It is customarily represented as a single hexadecimal digit. represented as a two digit hexadecimal number. param: number The number of the location table. This is a number between 1-63. It is customarily represented as a two digit decimal number.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    TmcTableId(scala.Option<Object> version, scala.Option<Object> extendedCountryCode, short countryCode, short number)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static TmcTableId
    Extracts a `TmcTableId` from a given `TrafficMessageChannelCode`.
    static TmcTableId
    Extracts a `TmcTableId` from a given `etl.TMCLocationReference`.
    static TmcTableId
    Extracts a `TmcTableId` from a given `tmc.TMCLocationReference`.
    static TmcTableId
    apply(com.here.platform.pb.location.optimizedmap.tmc.v2.tmc.TmcTablePartition table)
    Extracts a `TmcTableId` from a given `TmcTablePartition`.
    static TmcTableId
    Creates a TmcTableId from the customary string representation of the composite table identifier in the following format:
    short
     
    scala.Option<Object>
     
    Returns the customary string representation of the composite table identifier in the following format:
    short
     
    scala.Option<Object>
     

    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

    • TmcTableId

      public TmcTableId(scala.Option<Object> version, scala.Option<Object> extendedCountryCode, short countryCode, short number)
  • Method Details

    • apply

      public static TmcTableId apply(String s)
      Creates a TmcTableId from the customary string representation of the composite table identifier in the following format:

      2_digit_hex(extendedCountryCode)1_digit_hex(countryCode)2_digit_decimal(tableNumber)

      An example would be "E0D01" for the table covering Germany.

    • apply

      public static TmcTableId apply(TMCLocationReference ref)
      Extracts a `TmcTableId` from a given `etl.TMCLocationReference`.
    • apply

      public static TmcTableId apply(TMCLocationReference ref)
      Extracts a `TmcTableId` from a given `tmc.TMCLocationReference`.
    • apply

      public static TmcTableId apply(com.here.platform.pb.location.optimizedmap.tmc.v2.tmc.TmcTablePartition table)
      Extracts a `TmcTableId` from a given `TmcTablePartition`.
    • apply

      public static TmcTableId apply(TrafficMessageChannelCode tmcCode)
      Extracts a `TmcTableId` from a given `TrafficMessageChannelCode`.
    • version

      public scala.Option<Object> version()
    • extendedCountryCode

      public scala.Option<Object> extendedCountryCode()
    • countryCode

      public short countryCode()
    • number

      public short number()
    • idString

      public String idString()
      Returns the customary string representation of the composite table identifier in the following format:

      2_digit_hex(extendedCountryCode)1_digit_hex(countryCode)2_digit_decimal(tableNumber)

      An example would be "E0D01" for the current table for Germany.