Class Tpeg2Messages<A,M>

java.lang.Object
com.here.platform.location.tpeg2.Tpeg2Messages<A,M>

public class Tpeg2Messages<A,M> extends Object
A facade for application messages and the contained location references.

It allows filtering by reference type as well as by application type.

param: messages The underlying message facades.

  • Constructor Details

  • Method Details

    • apply

      public static Tpeg2Messages<ApplicationRootMessageML,Method> apply(scala.collection.Seq<TransportFrame> transportFrames)
      Create `Tpeg2Messages`-facade for the the given TransportFrames.
    • create

      public static Tpeg2Messages<ApplicationRootMessageML,Method> create(Iterator<TransportFrame> transportFrames)
      Create `Tpeg2Messages`-facade for the the given TransportFrames.
    • create

      public static Tpeg2Messages<ApplicationRootMessageML,Method> create(TPEGDocument document)
      Create `Tpeg2Messages`-facade for the given TransportFrames.
    • apply

      public static Tpeg2Messages<ApplicationRootMessageML,Method> apply(TPEGDocument document)
      Create `Tpeg2Messages`-facade for the given TransportFrames.
    • filterByApplication

      public <A2 extends ApplicationRootMessageML> Tpeg2Messages<A2,M> filterByApplication(Class<A2> appClass)
      Returns messages object that only contains messages of the class appClass.
    • filterByApplication

      public <A2 extends ApplicationRootMessageML> Tpeg2Messages<A2,M> filterByApplication(scala.reflect.ClassTag<A2> evidence$1)
      Returns messages object that only contains messages of the type A2.
    • filterTecMessages

      public Tpeg2Messages<TECMessage,M> filterTecMessages()
      Returns messages object that only contains TEC messages.
    • filterTfpMessages

      public Tpeg2Messages<TFPMessage,M> filterTfpMessages()
      Returns messages object that only contains TFP messages.
    • filterByLocationReferencingMethod

      public <M2 extends Method> Tpeg2Messages<A,M2> filterByLocationReferencingMethod(Class<M2> methodClass)
      Returns messages object that only contains application messages that have a location reference of the methodClass referencing method. Other methods in those application messages are also filtered out.
    • filterHavingLocationReferencingMethod

      public <M2 extends Method> Tpeg2Messages<A,M2> filterHavingLocationReferencingMethod(scala.reflect.ClassTag<M2> evidence$2)
      Returns messages object that only contains application messages that have a location reference of the M2 referencing method. Other methods in those application messages are also filtered out.
    • filterHavingOlrReferences

      public Tpeg2Messages<A,OpenLRLocationReference> filterHavingOlrReferences()
      Returns messages object that only contains application messages that have a OLR reference. Other types of references in the selected messages are also filtered out.
    • filterHavingTmcReferences

      public Tpeg2Messages<A,TMCLocationReference> filterHavingTmcReferences()
      Returns messages object that only contains application messages that have a TMC reference. Other types of references in the selected messages are also filtered out.
    • filterHavingExtendedTmcReferences

      public Tpeg2Messages<A,ExtendedTMCLocationReference> filterHavingExtendedTmcReferences()
      Returns messages object that only contains application messages that have an Extended TMC reference. Other types of references in the selected messages are also filtered out.
    • applicationMessages

      public scala.collection.Seq<A> applicationMessages()
      Returns the application messages in this message object.
    • getApplicationMessages

      public List<A> getApplicationMessages()
      Returns the application messages in this message object.
    • toSeq

      public scala.collection.Seq<Tpeg2MessageView<A,M>> toSeq()
    • asList

      public List<Tpeg2MessageView<A,M>> asList()
      Returns the message facades for the application messages in this object.