Class ImbKpiTransceiver<G extends GtuDataInterface>

  • All Implemented Interfaces:
    java.io.Serializable

    public class ImbKpiTransceiver<G extends GtuDataInterface>
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ImbKpiTransceiver​(org.opentrafficsim.imb.connector.Connector connector, Time time, java.lang.String networkId, Query<G> query, Duration transmissionInterval)
      Construct a new ImbKpiTransceiver.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void notifyTime​(Time time)
      Notifies about time, such that statistics over some period (very recently ended) can be gathered and published.
      void sendStatisticsUpdate()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImbKpiTransceiver

        public ImbKpiTransceiver​(org.opentrafficsim.imb.connector.Connector connector,
                                 Time time,
                                 java.lang.String networkId,
                                 Query<G> query,
                                 Duration transmissionInterval)
                          throws org.opentrafficsim.imb.IMBException
        Construct a new ImbKpiTransceiver.
        Parameters:
        connector - Connector; the IMB connector
        time - Time; time of creation
        networkId - String; the network id
        query - Query<G>; the statistics query
        transmissionInterval - Duration; the interval between generation of graphs
        Throws:
        org.opentrafficsim.imb.IMBException - when the post of the IMB message fails
    • Method Detail

      • notifyTime

        public void notifyTime​(Time time)
        Notifies about time, such that statistics over some period (very recently ended) can be gathered and published.
        Parameters:
        time - Time; the time to be used in the notification (usually the current time)
      • sendStatisticsUpdate

        public void sendStatisticsUpdate()
                                  throws org.opentrafficsim.imb.IMBException
        Throws:
        org.opentrafficsim.imb.IMBException - when the transmission of the IMB message fails