Package org.opentrafficsim.imb.kpi
Class ImbKpiTransceiver<G extends GtuDataInterface>
- java.lang.Object
-
- org.opentrafficsim.imb.kpi.ImbKpiTransceiver<G>
-
- 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 voidnotifyTime(Time time)Notifies about time, such that statistics over some period (very recently ended) can be gathered and published.voidsendStatisticsUpdate()
-
-
-
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.IMBExceptionConstruct a new ImbKpiTransceiver.- Parameters:
connector- Connector; the IMB connectortime- Time; time of creationnetworkId- String; the network idquery- Query<G>; the statistics querytransmissionInterval- 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
-
-