Class ImbKpiTransceiver<G extends GtuDataInterface>

    • Constructor Detail

      • ImbKpiTransceiver

        public ImbKpiTransceiver​(org.opentrafficsim.imb.connector.Connector connector,
                                 Time time,
                                 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