Package jmri.jmrix.dccpp
Class DCCppPredefinedMeters
java.lang.Object
jmri.jmrix.dccpp.DCCppPredefinedMeters
- All Implemented Interfaces:
EventListener,AbstractMRListener,DCCppListener
Provide access to current meters from the DCC++ Base Station
Creates meters based on values sent from command station
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voidMember function that will be invoked by a DCCppInterface implementation to forward a DCC++ message sent to the layout.voidMember function that will be invoked by a DCCppInterface implementation to forward a DCC++ message from the layout.voidMember function invoked by an DCCppInterface implementation to notify a sender that an outgoing message timed out and was dropped from the queue.voidsetDCCppTrafficController(DCCppTrafficController controller)
-
Constructor Details
-
DCCppPredefinedMeters
-
-
Method Details
-
setDCCppTrafficController
-
message
Description copied from interface:DCCppListenerMember function that will be invoked by a DCCppInterface implementation to forward a DCC++ message from the layout.- Specified by:
messagein interfaceDCCppListener- Parameters:
r- The received DCC++ message. Note that this same object may be presented to multiple users. It should not be modified here.
-
message
Description copied from interface:DCCppListenerMember function that will be invoked by a DCCppInterface implementation to forward a DCC++ message sent to the layout. Normally, this function will do nothing.- Specified by:
messagein interfaceDCCppListener- Parameters:
m- The received DCC++ message. Note that this same object may be presented to multiple users. It should not be modified here.
-
dispose
-
notifyTimeout
Description copied from interface:DCCppListenerMember function invoked by an DCCppInterface implementation to notify a sender that an outgoing message timed out and was dropped from the queue.- Specified by:
notifyTimeoutin interfaceDCCppListener- Parameters:
msg- the message that timed out.
-