Package jmri.jmrix.dccpp
Class DCCppPredefinedMeters
- java.lang.Object
-
- jmri.jmrix.dccpp.DCCppPredefinedMeters
-
- All Implemented Interfaces:
java.util.EventListener,AbstractMRListener,DCCppListener
public class DCCppPredefinedMeters extends java.lang.Object implements DCCppListener
Provide access to current meters from the DCC++ Base Station Creates meters based on values sent from command station
-
-
Constructor Summary
Constructors Constructor Description DCCppPredefinedMeters(DCCppSystemConnectionMemo memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()voidmessage(DCCppMessage m)Member function that will be invoked by a DCCppInterface implementation to forward a DCC++ message sent to the layout.voidmessage(DCCppReply r)Member function that will be invoked by a DCCppInterface implementation to forward a DCC++ message from the layout.voidnotifyTimeout(DCCppMessage msg)Member 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 Detail
-
DCCppPredefinedMeters
public DCCppPredefinedMeters(DCCppSystemConnectionMemo memo)
-
-
Method Detail
-
setDCCppTrafficController
public void setDCCppTrafficController(DCCppTrafficController controller)
-
message
public void message(DCCppReply r)
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
public void message(DCCppMessage m)
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
public void dispose()
-
notifyTimeout
public void notifyTimeout(DCCppMessage msg)
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.
-
-