Class PiecewiseTmcCoverage

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

public class PiecewiseTmcCoverage extends Object implements scala.Product, scala.Serializable
Generalized result of TMC reference creation.

This is needed as arbitrary LinearLocations are not necessarily representable in TMC, but clients might still be interested in partial results.

The following should hold:

  1. Where the parts touch the start or the end of the original LinearLocation they will have appropriate PreciseTMCInformation to match the original LinearLocation.
  2. Those references that are dominated, that is fully covered by a longer reference, are not returned.
  3. If references overlap, the first (in the direction of the original LinearLocation) one will be given the preference.
  4. Should two references have the same coverage an arbitrary one will get eliminated.
  5. The references are ordered in the direction of the originally requested LinearLocation.

param: parts Ordered parts of the original linear location, along with their optional TMC coverage.

See Also:
  • Constructor Details

    • PiecewiseTmcCoverage

      public PiecewiseTmcCoverage(scala.collection.Seq<TmcCoverage> parts)
    • PiecewiseTmcCoverage

      public PiecewiseTmcCoverage(List<TmcCoverage> parts)
  • Method Details

    • apply

      public abstract static R apply(T1 v1)
    • toString

      public static String toString()
    • parts

      public scala.collection.Seq<TmcCoverage> parts()
    • getParts

      public List<TmcCoverage> getParts()
      Returns ordered parts of the original linear location, along with their optional TMC coverage.