Package jmri.jmrix.dccpp
Class DCCppTurnoutReplyCache
- java.lang.Object
-
- jmri.jmrix.dccpp.DCCppTurnoutReplyCache
-
- All Implemented Interfaces:
java.util.EventListener
,AbstractMRListener
,DCCppListener
public class DCCppTurnoutReplyCache extends java.lang.Object implements DCCppListener
Implement a feedback message cache for DCC++ turnouts.
-
-
Field Summary
Fields Modifier and Type Field Description protected DCCppTrafficController
tc
-
Constructor Summary
Constructors Constructor Description DCCppTurnoutReplyCache(DCCppTrafficController controller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
message(DCCppMessage l)
Member function that will be invoked by a DCCppInterface implementation to forward a DCC++ message sent to the layout.void
message(DCCppReply l)
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
requestCachedStateFromLayout(DCCppTurnout turnout)
-
-
-
Field Detail
-
tc
protected DCCppTrafficController tc
-
-
Constructor Detail
-
DCCppTurnoutReplyCache
public DCCppTurnoutReplyCache(DCCppTrafficController controller)
-
-
Method Detail
-
requestCachedStateFromLayout
public void requestCachedStateFromLayout(DCCppTurnout turnout)
-
message
public void message(DCCppReply l)
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:
l
- 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 l)
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:
l
- The received DCC++ message. Note that this same object may be presented to multiple users. It should not be modified here.
-
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.
-
-