Package org.opentrafficsim.imb.kpi
Class ImbKpiTransceiver<G extends GtuDataInterface>
- java.lang.Object
-
- org.opentrafficsim.imb.kpi.ImbKpiTransceiver<G>
-
- All Implemented Interfaces:
Serializable
public class ImbKpiTransceiver<G extends GtuDataInterface> extends Object implements Serializable
- See Also:
- Serialized Form
-
-
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, 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
-
-