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 and voltage meters from the DCC++ Base Station Creates meters based on values sent from command station User can create new meters in the sketch.
-
-
Constructor Summary
Constructors Constructor Description DCCppPredefinedMeters(DCCppSystemConnectionMemo memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
void
message(DCCppMessage m)
Member function that will be invoked by a DCCppInterface implementation to forward a DCC++ message sent to the layout.void
message(DCCppReply r)
Member function that will be invoked by a DCCppInterface implementation to forward a DCC++ message from the layout.void
notifyTimeout(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.void
setDCCppTrafficController(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:DCCppListener
Member function that will be invoked by a DCCppInterface implementation to forward a DCC++ message from the layout.- Specified by:
message
in 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:DCCppListener
Member 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:
message
in 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:DCCppListener
Member function invoked by an DCCppInterface implementation to notify a sender that an outgoing message timed out and was dropped from the queue.- Specified by:
notifyTimeout
in interfaceDCCppListener
- Parameters:
msg
- the message that timed out.
-
-